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

 xo::db::Class[i] object_type_exists_in_db [ -object_type object_type ]

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

Check, if an object_type exists in the database.

Switches:
-object_type
(optional)
Returns:
0 or 1

Partial Call Graph (max 5 caller/called nodes):
%3 test_xotcl_core_tutorial_2 xotcl_core_tutorial_2 (test xotcl-core) xo::db::Class proc object_type_exists_in_db xo::db::Class proc object_type_exists_in_db test_xotcl_core_tutorial_2->xo::db::Class proc object_type_exists_in_db test_xotcl_core_tutorial_4 xotcl_core_tutorial_4 (test xotcl-core) test_xotcl_core_tutorial_4->xo::db::Class proc object_type_exists_in_db

Testcases:
xotcl_core_tutorial_2, xotcl_core_tutorial_4
Source code:
return [::xo::dc 0or1row check_type {
  select 1 from acs_object_types where object_type = :object_type
}]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: