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):
- 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 $sqlDialectXQL Not present: Generic, PostgreSQL, Oracle