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

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

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

Get the table_name of an object_type from the database. If the object_type does not exist, the return value is empty.

Switches:
-object_type
(required)
Returns:
table_name

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 get_table_name xo::db::Class proc get_table_name test_xotcl_core_tutorial_2->xo::db::Class proc get_table_name

Testcases:
xotcl_core_tutorial_2
Source code:
return [::xo::dc get_value get_table_name {
  select lower(table_name) as table_name from acs_object_types where object_type = :object_type
} ""]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: