xo::db::Class proc exists_in_db (public)

 xo::db::Class[i] exists_in_db -id id 

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

Check, if an acs_object exists in the database.

Switches:
-id
(required)
Returns:
0 or 1

Partial Call Graph (max 5 caller/called nodes):
%3 test_test_cr_items test_cr_items (test xotcl-core) xo::db::Class proc exists_in_db xo::db::Class proc exists_in_db test_test_cr_items->xo::db::Class proc exists_in_db test_test_xo_db_object test_xo_db_object (test xotcl-core) test_test_xo_db_object->xo::db::Class proc exists_in_db test_xotcl_core_tutorial_1 xotcl_core_tutorial_1 (test xotcl-core) test_xotcl_core_tutorial_1->xo::db::Class proc exists_in_db test_xotcl_core_tutorial_2 xotcl_core_tutorial_2 (test xotcl-core) test_xotcl_core_tutorial_2->xo::db::Class proc exists_in_db test_xotcl_core_tutorial_4 xotcl_core_tutorial_4 (test xotcl-core) test_xotcl_core_tutorial_4->xo::db::Class proc exists_in_db

Testcases:
xotcl_core_tutorial_1, xotcl_core_tutorial_2, xotcl_core_tutorial_4, test_xo_db_object, test_cr_items
Source code:
return [::xo::dc 0or1row -prepare integer select_object {
  select 1 from acs_objects where object_id = :id
}]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: