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