Next Prev Up Top Contents Index

15.2.3 Initialization functions and variables

The initialization of the ODBC database type is achieved by calling sql:initialize-database-type on the database type :odbc . In an application, this step should be done at runtime.

The following functions and variables are relevant to initialization:

*default-database-type*

Variable

Specifies the default type of database. Currently only ODBC is supported, and therefore this should be set to :odbc .

*initialized-database-types*

Variable

Contains a list of database types which have been initialized by calls to initialize-database-type .

initialize-database-type

Function

sql:initialize-database-type &key database-type

Initializes a database type according to the value of database-type . Adds database-type to the list of initialized types.

A sample code sequence for initializing SQL to work with an ODBC database, using the above functions and variables, is as follows:

(require "odbc")
(setf sql:*default-database-type* :odbc)
(sql:initialize-database-type)

LispWorks User Guide - 14 Dec 2001

Next Prev Up Top Contents Index