- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::xo::db::sql::bt_version
::xo::db::sql::bt_version create ...
Defined in
Class Relations
::xo::db::Class create ::xo::db::sql::bt_version \ -superclass ::xotcl::ObjectMethods (to be applied on the object)
set_active (scripted, public)
xo::db::sql::bt_version set_active [ -dbn dbn ] \ -active_version_id active_version_idAutomatically 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 ] }
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables