xo::db::sql::journal_entry proc new (public)
xo::db::sql::journal_entry new [ -dbn dbn ] [ -journal_id journal_id ] \ -object_id object_id -action action \ [ -action_pretty action_pretty ] [ -creation_date creation_date ] \ [ -creation_user creation_user ] [ -creation_ip creation_ip ] \ [ -msg msg ] [ -childof childof ]
Defined in packages/xotcl-core/tcl/05-db-procs.tcl
Automatically generated method
- Switches:
- -dbn
(optional)- -journal_id
(optional)- -object_id
(required)- -action
(required)- -action_pretty
(optional)- -creation_date
(defaults to"now()"
) (optional)- -creation_user
(optional)- -creation_ip
(optional)- -msg
(optional)- -childof
(optional)- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: #function_args: {JOURNAL_ID null} {OBJECT_ID {}} {ACTION {}} {ACTION_PRETTY null} {CREATION_DATE now()} {CREATION_USER null} {CREATION_IP null} {MSG null} foreach var [list JOURNAL_ID OBJECT_ID ACTION ACTION_PRETTY CREATION_DATE CREATION_USER CREATION_IP MSG] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select journal_entry__new($_JOURNAL_ID, $_OBJECT_ID, $_ACTION, $_ACTION_PRETTY, $_CREATION_DATE, $_CREATION_USER, $_CREATION_IP, $_MSG) " 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