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

 xo::db::sql::category_tree[i] new [ -dbn dbn ] -tree_id tree_id  \
    -locale locale  -tree_name tree_name  -description description  \
    -site_wide_p site_wide_p  -creation_date creation_date  \
    -creation_user creation_user  -creation_ip creation_ip  \
    -context_id context_id  [ -childof childof ]

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

Automatically generated method

Switches:
-dbn
(optional)
-tree_id
(required)
-locale
(required)
-tree_name
(required)
-description
(required)
-site_wide_p
(required)
-creation_date
(required)
-creation_user
(required)
-creation_ip
(required)
-context_id
(required)
-childof
(optional)

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

Testcases:
No testcase defined.
Source code:
#function_args: {TREE_ID {}} {LOCALE {}} {TREE_NAME {}} {DESCRIPTION {}} {SITE_WIDE_P {}} {CREATION_DATE {}} {CREATION_USER {}} {CREATION_IP {}} {CONTEXT_ID {}}
foreach var [list TREE_ID LOCALE TREE_NAME DESCRIPTION SITE_WIDE_P CREATION_DATE CREATION_USER CREATION_IP CONTEXT_ID]  {
  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__new($_TREE_ID$_LOCALE$_TREE_NAME$_DESCRIPTION$_SITE_WIDE_P$_CREATION_DATE$_CREATION_USER$_CREATION_IP$_CONTEXT_ID) 
    "
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: