xo::db::Class proc exists_in_db (public)
xo::db::Class exists_in_db -id id
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Check, if an acs_object exists in the database.
- Switches:
- -id (required)
- Returns:
- 0 or 1
- 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