%3 ::xotcl::Object ::xotcl::Object ::xo::db::sql::sec_session_property ::xo::db::sql::sec_session_property → upsert ::xo::db::sql::sec_session_property->::xotcl::Object

Class ::xo::db::sql::sec_session_property

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

Class Relations

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

Methods (to be applied on the object)

  • upsert (scripted, public)

     xo::db::sql::sec_session_property[i] upsert [ -dbn dbn ] \
        -session_id session_id  -module module  -name name  -value value  \
        -secure_p secure_p  -last_hit last_hit 

    Automatically generated method

    Switches:
    -dbn
    (optional)
    -session_id
    (required)
    -module
    (required)
    -name
    (required)
    -value
    (required)
    -secure_p
    (required)
    -last_hit
    (required)

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

    Testcases:
    No testcase defined.
    #function_args: {SESSION_ID {}} {MODULE {}} {NAME {}} {VALUE {}} {SECURE_P {}} {LAST_HIT {}}
    foreach var [list SESSION_ID MODULE NAME VALUE SECURE_P LAST_HIT]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select sec_session_property__upsert($_SESSION_ID$_MODULE$_NAME$_VALUE$_SECURE_P$_LAST_HIT) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }