%3 ::xotcl::Object ::xotcl::Object ::xo::db::sql::bt_version ::xo::db::sql::bt_version → set_active ::xo::db::sql::bt_version->::xotcl::Object

Class ::xo::db::sql::bt_version

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

Defined in

Class Relations

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

Methods (to be applied on the object)

  • set_active (scripted, public)

     xo::db::sql::bt_version[i] set_active [ -dbn dbn ] \
        -active_version_id active_version_id 

    Automatically generated method

    Switches:
    -dbn (optional)
    -active_version_id (required)

    Testcases:
    No testcase defined.
    #function_args: {ACTIVE_VERSION_ID {}}
    foreach var [list ACTIVE_VERSION_ID]  {
      set varname [string tolower $var]
      if {[info exists $varname]} {
        set $var [set $varname]
        set _$var :$var
      } else {
        set _$var null
      }
    }
    set sql "
    select bt_version__set_active($_ACTIVE_VERSION_ID) 
        "
    db_with_handle -dbn $dbn db {
      #ns_log notice "--sql=$sql"
      return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
    }