Class Transaction

An object representing a transaction context. The actual backend connection/transaction is usually lazily created.

Part of:

package cl-rdbms

Slot

begin-was-executedInitargs::begin-was-executed; Accessors:begin-was-executed-p; Type:boolean.
break-on-next-commandInitargs::break-on-next-command; Accessors:break-on-next-command-p; Type:boolean.
command-counterInitform:(make-instance 'command-counter), Initargs::command-counter; Accessors:command-counter-of; Type:command-counter.
databaseInitargs::database; Accessors:database-of; Type:database.
default-result-typeInitargs::default-result-type; Accessors:default-result-type-of; Type:(member vector list cursor).
stateInitform:uninitialized, Initargs::state; Accessors:state-of; Type:(member uninitialized committed rolled-back in-progress).
terminal-action
Used by with-transaction to decide what to do when the with-transaction body finishes without any errors.
Initform:commit, Initargs::terminal-action; Accessors:terminal-action-of; Type:(member commit rollback marked-for-commit-only marked-for-rollback-only).
timestampInitargs::timestamp; Accessors:timestamp-of; Type:integer.

Direct Method

make-cursorCreates and associates a new cursor with the given ongoing transaction.
setfterminal-action-of