xo::db::sql::timezone proc add_rule (public)

 xo::db::sql::timezone[i] add_rule [ -dbn dbn ] -tz tz  -abbrev abbrev  \
    -isdst_p isdst_p  -gmt_offset gmt_offset  -utc_start utc_start  \
    -utc_end utc_end  -local_start local_start  -local_end local_end 

Defined in packages/xotcl-core/tcl/05-db-procs.tcl

Automatically generated method

Switches:
-dbn
(optional)
-tz
(required)
-abbrev
(required)
-isdst_p
(required)
-gmt_offset
(required)
-utc_start
(required)
-utc_end
(required)
-local_start
(required)
-local_end
(required)

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

Testcases:
No testcase defined.
Source code:
#function_args: {TZ {}} {ABBREV {}} {ISDST_P {}} {GMT_OFFSET {}} {UTC_START {}} {UTC_END {}} {LOCAL_START {}} {LOCAL_END {}}
foreach var [list TZ ABBREV ISDST_P GMT_OFFSET UTC_START UTC_END LOCAL_START LOCAL_END]  {
  set varname [string tolower $var]
  if {[info exists $varname]} {
    set $var [set $varname]
    set _$var :$var
  } else {
    set _$var null
  }
}
set sql "
select timezone__add_rule($_TZ$_ABBREV$_ISDST_P$_GMT_OFFSET$_UTC_START$_UTC_END$_LOCAL_START$_LOCAL_END) 
    "
db_with_handle -dbn $dbn db {
  #ns_log notice "--sql=$sql"
  return [ ns_set value [ns_pg_bind 0or1row $db $sql] 0 ]
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: