Basics::Begin
Start a transaction Sintaxe namespace ProtocolLive\PhpLiveDb; function Basics::Begin():void; See more - Commit - Rollback - Types Example
$Db->Begin();
* The variable $Db are created in PhpLiveDb::__construct
$consult = $Db->Insert('users'); $consult->FieldAdd('email', 'a@a.com', Types::Str); $consult->FieldAdd('password', '123', Types::Str); $consult->Run(); $Db->Commit(); |