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

 xo::db::sql::acs_sc_operation[i] new [ -dbn dbn ] \
    -contract_name contract_name  -operation_name operation_name  \
    -operation_desc operation_desc  \
    [ -operation_iscachable_p operation_iscachable_p ] \
    -operation_nargs operation_nargs  \
    -operation_inputtype operation_inputtype  \
    -operation_outputtype operation_outputtype  [ -childof childof ]

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

Automatically generated method

Switches:
-dbn
(optional)
-contract_name
(required)
-operation_name
(required)
-operation_desc
(required)
-operation_iscachable_p
(defaults to "f") (optional)
-operation_nargs
(required)
-operation_inputtype
(required)
-operation_outputtype
(required)
-childof
(optional)

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

Testcases:
No testcase defined.
Source code:
#function_args: {CONTRACT_NAME {}} {OPERATION_NAME {}} {OPERATION_DESC {}} {OPERATION_ISCACHABLE_P f} {OPERATION_NARGS {}} {OPERATION_INPUTTYPE {}} {OPERATION_OUTPUTTYPE {}}
foreach var [list CONTRACT_NAME OPERATION_NAME OPERATION_DESC OPERATION_ISCACHABLE_P OPERATION_NARGS OPERATION_INPUTTYPE OPERATION_OUTPUTTYPE]  {
  set varname [string tolower $var]
  if {[info exists $varname]} {
    set $var [set $varname]
    set _$var :$var
  } else {
    set _$var null
  }
}
set sql "
select acs_sc_operation__new($_CONTRACT_NAME$_OPERATION_NAME$_OPERATION_DESC$_OPERATION_ISCACHABLE_P$_OPERATION_NARGS$_OPERATION_INPUTTYPE$_OPERATION_OUTPUTTYPE) 
    "
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: