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

 xo::db::sql::acs_message[i] new [ -dbn dbn ] -message_id message_id  \
    -reply_to reply_to  -sent_date sent_date  -sender sender  \
    -rfc822_id rfc822_id  -title title  -description description  \
    -mime_type mime_type  -text text  -data data  \
    -parent_id parent_id  -context_id context_id  \
    -creation_user creation_user  -creation_ip creation_ip  \
    -object_type object_type  -is_live is_live  \
    -package_id package_id  [ -childof childof ]

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

Automatically generated method

Switches:
-dbn
(optional)
-message_id
(required)
-reply_to
(required)
-sent_date
(required)
-sender
(required)
-rfc822_id
(required)
-title
(required)
-description
(required)
-mime_type
(required)
-text
(required)
-data
(required)
-parent_id
(required)
-context_id
(required)
-creation_user
(required)
-creation_ip
(required)
-object_type
(required)
-is_live
(required)
-package_id
(required)
-childof
(optional)

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

Testcases:
No testcase defined.
Source code:
#function_args: {MESSAGE_ID {}} {REPLY_TO {}} {SENT_DATE {}} {SENDER {}} {RFC822_ID {}} {TITLE {}} {DESCRIPTION {}} {MIME_TYPE {}} {TEXT {}} {DATA {}} {PARENT_ID {}} {CONTEXT_ID {}} {CREATION_USER {}} {CREATION_IP {}} {OBJECT_TYPE {}} {IS_LIVE {}} {PACKAGE_ID {}}
foreach var [list MESSAGE_ID REPLY_TO SENT_DATE SENDER RFC822_ID TITLE DESCRIPTION MIME_TYPE TEXT DATA PARENT_ID CONTEXT_ID CREATION_USER CREATION_IP OBJECT_TYPE IS_LIVE 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 acs_message__new($_MESSAGE_ID$_REPLY_TO$_SENT_DATE$_SENDER$_RFC822_ID$_TITLE$_DESCRIPTION$_MIME_TYPE$_TEXT$_DATA$_PARENT_ID$_CONTEXT_ID$_CREATION_USER$_CREATION_IP$_OBJECT_TYPE$_IS_LIVE$_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
[ hide source ] | [ make this the default ]
Show another procedure: