- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::db::DB
::xo::db::DBcreate ...
Defined in
Class Relations
- class: ::xotcl::Class
- superclass: ::xo::db::Driver
- subclass: ::xo::db::DB-oracle
, ::xo::db::DB-postgresql
::xotcl::Class create ::xo::db::DB \ -superclass ::xo::db::DriverMethods (to be applied on instances)
transaction (scripted, public)
<instance of xo::db::DB> transaction [ -dbn dbn ] script args \ [ args... ]
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
return [:uplevel [list ::db_transaction -dbn $dbn $script {*}$args]]
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
![[i]](/resources/acs-subsite/ZoomIn16.gif)