db_with_handle (public)

 db_with_handle [ -dbn dbn ] db code_block

Defined in packages/acs-tcl/tcl/01-database-procs.tcl

Place a usable database handle in db and executes code_block.

Switches:
-dbn (optional)
Database name to use. If empty_string, use the default database
Parameters:
db (required)
Name of the handle variable used in the code block
code_block (required)
code block to be executed with handle

Partial Call Graph (max 5 caller/called nodes):
%3 test_db__0or1row db__0or1row (test acs-tcl) db_with_handle db_with_handle test_db__0or1row->db_with_handle test_db__1row db__1row (test acs-tcl) test_db__1row->db_with_handle test_xowiki_test_cases xowiki_test_cases (test xowiki) test_xowiki_test_cases->db_with_handle ad_log ad_log (public) db_with_handle->ad_log db_available_pools db_available_pools (public) db_with_handle->db_available_pools ds_collect_db_call ds_collect_db_call (public) db_with_handle->ds_collect_db_call acs::db::nsdb-postgresql instproc {call acs add_user} acs::db::nsdb-postgresql instproc {call acs add_user} (public) acs::db::nsdb-postgresql instproc {call acs add_user}->db_with_handle acs::db::nsdb-postgresql instproc {call acs magic_object_id} acs::db::nsdb-postgresql instproc {call acs magic_object_id} (public) acs::db::nsdb-postgresql instproc {call acs magic_object_id}->db_with_handle acs::db::nsdb-postgresql instproc {call acs remove_user} acs::db::nsdb-postgresql instproc {call acs remove_user} (public) acs::db::nsdb-postgresql instproc {call acs remove_user}->db_with_handle acs::db::nsdb-postgresql instproc {call acs_activity delete} acs::db::nsdb-postgresql instproc {call acs_activity delete} (public) acs::db::nsdb-postgresql instproc {call acs_activity delete}->db_with_handle acs::db::nsdb-postgresql instproc {call acs_activity edit} acs::db::nsdb-postgresql instproc {call acs_activity edit} (public) acs::db::nsdb-postgresql instproc {call acs_activity edit}->db_with_handle

Testcases:
db__0or1row, db__1row, xowiki_test_cases
[ show source ]
Show another procedure: