- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::db::sql::acs_datatype
::xo::db::sql::acs_datatype create ...
Defined in
Class Relations
::xo::db::Class create ::xo::db::sql::acs_datatype \ -superclass ::xotcl::ObjectMethods (to be applied on the object)
date_output_function (scripted, public)
xo::db::sql::acs_datatype date_output_function [ -dbn dbn ] \ -attribute_name attribute_nameAutomatically generated method
- Switches:
- -dbn (optional)
- -attribute_name (required)
- Testcases:
- No testcase defined.
#function_args: {ATTRIBUTE_NAME {}} foreach var [list ATTRIBUTE_NAME] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_datatype__date_output_function($_ATTRIBUTE_NAME) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }timestamp_output_function (scripted, public)
xo::db::sql::acs_datatype timestamp_output_function [ -dbn dbn ] \ -attribute_name attribute_nameAutomatically generated method
- Switches:
- -dbn (optional)
- -attribute_name (required)
- Testcases:
- No testcase defined.
#function_args: {ATTRIBUTE_NAME {}} foreach var [list ATTRIBUTE_NAME] { set varname [string tolower $var] if {[info exists $varname]} { set $var [set $varname] set _$var :$var } else { set _$var null } } set sql " select acs_datatype__timestamp_output_function($_ATTRIBUTE_NAME) " db_with_handle -dbn $dbn db { #ns_log notice "--sql=$sql" return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ] }
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables