xo::db::DB instproc transaction (public)

 <instance of xo::db::DB[i]> transaction [ -dbn dbn ] script args \
    [ args... ]

Defined in /var/www/openacs/packages/xotcl-core/tcl/05-db-procs.tcl

Evaluate a script in the caller within a database transaction.

Switches:
-dbn (optional)
Database name, or empty for the default.
Parameters:
script (required)
Tcl script to execute.
args (required)
Additional arguments to db_transaction.

Testcases:
xotcl_core_tutorial_1, xotcl_core_tutorial_2, xotcl_core_tutorial_4, test_xo_db_object, test_cr_items
Source code:
return [:uplevel [list ::db_transaction -dbn $dbn $script {*}$args]]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: