xo::db::sql::content_type proc drop_type (public)
xo::db::sql::content_type drop_type [ -dbn dbn ] \ -content_type content_type [ -drop_children_p drop_children_p ] \ [ -drop_table_p drop_table_p ] [ -drop_objects_p drop_objects_p ]
Defined in /var/www/openacs.org/packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn (optional)
- -content_type (required)
- -drop_children_p (optional, defaults to
"f"
)- -drop_table_p (optional, defaults to
"f"
)- -drop_objects_p (optional, defaults to
"f"
)- Testcases:
- No testcase defined.
Source code: #function_args: {CONTENT_TYPE {}} {DROP_CHILDREN_P f} {DROP_TABLE_P f} {DROP_OBJECTS_P f} foreach var [list CONTENT_TYPE DROP_CHILDREN_P DROP_TABLE_P DROP_OBJECTS_P] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select content_type__drop_type($_CONTENT_TYPE, $_DROP_CHILDREN_P, $_DROP_TABLE_P, $_DROP_OBJECTS_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