xo::db::select_driver (private)

 xo::db::select_driver [ driver ]

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

Select the driver based on the specified argument (either DB or DBI) or based on the defaults for the configuration. This function can be used to switch the driver as well dynamically.

Parameters:
driver (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 test_test_xo_db_object test_xo_db_object (test xotcl-core) xo::db::select_driver xo::db::select_driver test_test_xo_db_object->xo::db::select_driver db_driverkey db_driverkey (public) xo::db::select_driver->db_driverkey

Testcases:
test_xo_db_object
Source code:
    set sqlDialect [db_driverkey ""]
    if {$driver eq ""} {
      set driver DB
      if {[info exists ::acs::preferdbi]} {
        set driver DBI
      }
    }
    ::xo::db::$driver-$sqlDialect create ::xo::dc -dialect $sqlDialect
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: