Atualizando Database.class.php

This commit is contained in:
Kenio 2025-08-25 14:48:43 -03:00
parent b368da4d04
commit c654903e7e

View file

@ -117,14 +117,10 @@ class Database
/** Parametros */ /** Parametros */
echo $this->clientId = $clientId; $this->clientId = $clientId;
echo '---'; $this->fileSize = $fileSize;
echo $this->fileSize = $fileSize; $this->lastModified = $lastModified;
echo '---'; $this->dbAccessible = $dbAccessible;
echo $this->lastModified = $lastModified;
echo '---';
echo $this->dbAccessible = $dbAccessible;
echo '---';
/** Consulta SQL */ /** Consulta SQL */
$this->sql = 'insert into db(client_id, $this->sql = 'insert into db(client_id,
@ -153,6 +149,10 @@ class Database
/** Executo o SQL */ /** Executo o SQL */
$this->stmt->execute(); $this->stmt->execute();
/** Confirma a transação */
$this->connection->connect()->commit();
return true;
} catch (\Exception $exception) { } catch (\Exception $exception) {
/** Desfaz a transação */ /** Desfaz a transação */