Basics::Commit

Commit the transactions created since last Basics::Begin

Sintaxe


namespace ProtocolLive\PhpLiveDb;

function Basics::Commit():void;
See more

- Begin

- Rollback

- Transaction

- Types

Example

$Db->Begin();
$consult = $Db->Insert('users');
$consult->FieldAdd('email', 'a@a.com', Types::Str);
$consult->FieldAdd('password', '123', Types::Str);
$consult->Run();
$Db->Commit();
* The variable $Db are created in PhpLiveDb::__construct