Basics::Begin

Start a transaction

Sintaxe


namespace ProtocolLive\PhpLiveDb;

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

- Commit

- 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