On this page, you will find more information about the libSQL Transaction and available functions.
LibSQLTransaction
class represents a database transaction in the LibSQL PHP extension. It allows for executing SQL statements within a transaction context, handling commits, rollbacks, and managing transactional behavior.
$db->transaction()
.
changes
isAutocommit
true
, otherwise false
.execute
string $stmt
: The SQL statement to execute.array $parameters
: The parameters for the statement (optional).query
string $stmt
: The SQL statement to execute.array $parameters
: The parameters for the statement (optional).commit
rollback