Skip to content

Interface: RestartOptions ​

Defined in: packages/core/src/api/transaction.ts:21

Extends ​

Properties ​

PropertyTypeDescriptionInherited fromDefined in
action?"commit" | "rollback"Finish the current transaction by 'commit' (default) or 'rollback'.-packages/core/src/api/transaction.ts:23
autoCommit?boolean-TransactionOptions.autoCommitpackages/core/src/protocol/transaction.ts:32
autoUpgradeReadOnly?booleanClient-side behavior, not part of the TPB: when a statement in a read-only transaction fails with "attempted update during read-only transaction", commit and reopen the transaction read-write (same isolation/wait) and replay that statement once. Applies to tx.query/run/execute; queryStream and prepared statements are not replayed. The upgrade is a real commit + new transaction: the snapshot moves forward and lazy Blob handles from before it become invalid; the transaction stays read-write afterwards (tx.autoUpgraded reports it). One-shot db.query/run/execute route through the same path, so a read-only defaultTransaction upgrades transparently there too. Default: the connection's autoUpgradeReadOnly option (false).TransactionOptions.autoUpgradeReadOnlypackages/core/src/protocol/transaction.ts:46
isolation?IsolationLevel-TransactionOptions.isolationpackages/core/src/protocol/transaction.ts:22
readOnly?boolean-TransactionOptions.readOnlypackages/core/src/protocol/transaction.ts:23
wait?number | booleanLock-wait behavior: number = wait up to that many seconds, then error; false = nowait (fail immediately); true = wait forever (Firebird's native default). Driver default when unset: 10 seconds (DEFAULT_LOCK_TIMEOUT_SECONDS) — so contention surfaces as a clear lock-timeout error instead of an unbounded hang.TransactionOptions.waitpackages/core/src/protocol/transaction.ts:31

MIT Licensed. Contains data derived from the Firebird project under IDPL/IPL.