xo::db::sql::content_symlink proc new (public)
xo::db::sql::content_symlink new [ -dbn dbn ] [ -name name ] \ [ -label label ] -target_id target_id -parent_id parent_id \ [ -symlink_id symlink_id ] [ -creation_date creation_date ] \ [ -creation_user creation_user ] [ -creation_ip creation_ip ] \ [ -package_id package_id ] [ -childof childof ]
Defined in packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn
(optional)- -name
(optional)- -label
(optional)- -target_id
(required)- -parent_id
(required)- -symlink_id
(optional)- -creation_date
(defaults to"now"
) (optional)- -creation_user
(optional)- -creation_ip
(optional)- -package_id
(optional)- -childof
(optional)- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: #function_args: {NAME null} {LABEL null} {TARGET_ID {}} {PARENT_ID {}} {SYMLINK_ID null} {CREATION_DATE now} {CREATION_USER null} {CREATION_IP null} {PACKAGE_ID null} foreach var [list NAME LABEL TARGET_ID PARENT_ID SYMLINK_ID CREATION_DATE CREATION_USER CREATION_IP PACKAGE_ID] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select content_symlink__new($_NAME, $_LABEL, $_TARGET_ID, $_PARENT_ID, $_SYMLINK_ID, $_CREATION_DATE, $_CREATION_USER, $_CREATION_IP, $_PACKAGE_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