%3 ::xotcl::Object ::xotcl::Object ::xo::db::sql::acs_datatype ::xo::db::sql::acs_datatype → date_output_function → timestamp_output_function ::xo::db::sql::acs_datatype->::xotcl::Object

Class ::xo::db::sql::acs_datatype

::xo::db::sql::acs_datatype[i] create ...

Defined in

Class Relations

  • class: ::xo::db::Class[i]
  • superclass: ::xotcl::Object[i]
::xo::db::Class create ::xo::db::sql::acs_datatype \
     -superclass ::xotcl::Object

Methods (to be applied on the object)

  • date_output_function (scripted, public)

     xo::db::sql::acs_datatype[i] date_output_function [ -dbn dbn ] \
        -attribute_name attribute_name 

    Automatically 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[i] timestamp_output_function [ -dbn dbn ] \
        -attribute_name attribute_name 

    Automatically 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 ]
    }