Query API: Transaction
abort()
Summary
tsclass Transaction { abort(): void; }
Forcibly aborts the transaction.
selectFrom()
Summary
tsclass Transaction { selectFrom<Store extends keyof Schema>(store: Store): SelectQueryBuilder; }
Provides a query builder for selection queries.
Parameters
store
— The name of the store from which select records.
Type Parameters
Store
— The name of the store from which select records.
Returns
The
SelectQueryBuilder
to define and perform a selection query.
update()
Summary
tsclass Transaction { update<Store extends keyof Schema>(store: Store): UpdateQueryBuilder; }
Provides a query builder for update queries.
WARNING
Only available during migration and read/write transactions.
Parameters
store
— The name of the store to update.
Type Parameters
Store
— The name of the store to update.
Returns
The
UpdateQueryBuilder
to perform update operations.
deleteFrom()
Summary
tsclass Transaction { deleteFrom<Store extends keyof Schema>(store: Store): DeleteQueryBuilder; }
Provides a query builder for deletion queries.
WARNING
Only available during migration and read/write transactions.
Parameters
store
— The name of the store from which to delete records.
Type Parameters
Store
— The name of the store from which to delete records.
Returns
The
DeleteQueryBuilder
to perform deletion operations.