commit()
Last updated 10/09/2024
The
commit()
is a function on the Five
object that commits transactions to the database. A commit is the updating of a record in
a database and will save the data permanently after a set of tentative changes. A commit ends a transaction within the database. The commit()
can be used in conjuction with the rollback()
which will rollback a database transaction to be in its previous state.
Available
Server
Function Signature
commit(tx: Transaction) : FiveError;
Parameter | Type | Description |
---|---|---|
tx | Transaction | An active database transaction |