xo::db::sql::category_tree proc map (public)

 xo::db::sql::category_tree[i] map [ -dbn dbn ] -object_id object_id  \
    -tree_id tree_id  -subtree_category_id subtree_category_id  \
    -assign_single_p assign_single_p  \
    -require_category_p require_category_p  -widget widget 

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

Automatically generated method

Switches:
-dbn
(optional)
-object_id
(required)
-tree_id
(required)
-subtree_category_id
(required)
-assign_single_p
(required)
-require_category_p
(required)
-widget
(required)

Partial Call Graph (max 5 caller/called nodes):
%3 db_with_handle db_with_handle (public) xo::db::sql::category_tree proc map xo::db::sql::category_tree proc map xo::db::sql::category_tree proc map->db_with_handle

Testcases:
No testcase defined.
Source code:
#function_args: {OBJECT_ID {}} {TREE_ID {}} {SUBTREE_CATEGORY_ID {}} {ASSIGN_SINGLE_P {}} {REQUIRE_CATEGORY_P {}} {WIDGET {}}
foreach var [list OBJECT_ID TREE_ID SUBTREE_CATEGORY_ID ASSIGN_SINGLE_P REQUIRE_CATEGORY_P WIDGET]  {
  set varname [string tolower $var]
  if {[info exists $varname]} {
    set $var [set $varname]
    set _$var :$var
  } else {
    set _$var null
  }
}
set sql "
select category_tree__map($_OBJECT_ID$_TREE_ID$_SUBTREE_CATEGORY_ID$_ASSIGN_SINGLE_P$_REQUIRE_CATEGORY_P$_WIDGET) 
    "
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: