The initialization of the chosen database type is achieved by calling
. In an application, this step should be done at runtime. Where multiple database types are supported, it is possible to initialize more than one database type if needed.
The following functions and variables are relevant to initialization:
specifies the default type of database. Currently supported values are
on Unix/Linux, and
on all platforms.
initializes a database type according to the value of its
argument, which defaults to the value of
A sample code sequence for initializing Common SQL to work with an ODBC database, using the above functions and variables, is as follows:
(setf sql:*default-database-type* :odbc)
You can find which database types have been initialized by the value of the variable