Sign in Join
FPDoc Onlineexperiment

TSQLTransaction.StartTransaction procedure

Member of TSQLTransactionpublicIn unit SQLDB

Start a new transaction.

Declaration

pascal
procedure StartTransaction; override

Description

StartTransaction starts a new transaction context. All changes written to the database must be confirmed with a Commit or can be undone with a Rollback call.

Calling StartTransaction is equivalent to setting Active to True.

Errors

If StartTransaction is called while the transaction is still active, an exception will be raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.