acs-db-00-procs.tcl

Low level interface for defining the basic classes for the DB interface.

Location:
packages/acs-tcl/tcl/acs-db-00-procs.tcl
Created:
2022-02-07
Author:
Gustaf Neumann

Procedures in this file

Detailed information

acs::db::require_dc (private)

 acs::db::require_dc [ -backend backend ] [ -driver driver ] \
    [ -name name ]

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.

Switches:
-backend
(optional)
"postgresql" or "oracle" or empty. When empty, determine backed from db_driverkey.
-driver
(optional)
"nsdb" or "nsdbi" or empty. When empty, assume "nsdb" unless "preferdbi" is set.
-name
(defaults to "::acs::dc") (optional)
of the interface object (defaults to "::acs::dc")
Returns:
database interface object

Partial Call Graph (max 5 caller/called nodes):
%3 db_driverkey db_driverkey (public) acs::db::require_dc acs::db::require_dc acs::db::require_dc->db_driverkey

Testcases:
No testcase defined.
[ show source ]