xo::db::sql::acs_object_type proc drop_type (public)

 xo::db::sql::acs_object_type[i] drop_type [ -dbn dbn ] \
    -object_type object_type  [ -drop_children_p drop_children_p ] \
    [ -drop_table_p drop_table_p ]

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

Automatically generated method

Switches:
-dbn
(optional)
-object_type
(required)
-drop_children_p
(defaults to "f") (optional)
-drop_table_p
(defaults to "f") (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 test_xotcl_core_tutorial_2 xotcl_core_tutorial_2 (test xotcl-core) xo::db::sql::acs_object_type proc drop_type xo::db::sql::acs_object_type proc drop_type test_xotcl_core_tutorial_2->xo::db::sql::acs_object_type proc drop_type db_with_handle db_with_handle (public) xo::db::sql::acs_object_type proc drop_type->db_with_handle

Testcases:
xotcl_core_tutorial_2
Source code:
#function_args: {OBJECT_TYPE {}} {DROP_CHILDREN_P f} {DROP_TABLE_P f}
foreach var [list OBJECT_TYPE DROP_CHILDREN_P DROP_TABLE_P]  {
  set varname [string tolower $var]
  if {[info exists $varname]} {
    set $var [set $varname]
    set _$var :$var
  } else {
    set _$var null
  }
}
set sql "
select acs_object_type__drop_type($_OBJECT_TYPE$_DROP_CHILDREN_P$_DROP_TABLE_P) 
    "
db_with_handle -dbn $dbn db {
  #ns_log notice "--sql=$sql"
  return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: