NextPrevUpTopContentsIndex

initialize-database-type

Function
Summary

Initializes a database type.

Package

sql

Signature

initialize-database-type &key database-type => type

Arguments

database-type

A database type.

Values

type

A database type.

Description

The function initialize-database-type initializes a database type by loading code and appropriate database libraries according to the value of database-type . If *default-database-type* is not initialized, this function initializes it. It adds database-type to the list of initialized types. The initialized database type is returned.

Example

The following example shows how to use initialize-database-type to initialize the :odbc database type.

(require "odbc")
(in-package sql)
(setf *default-database-type* :odbc)
(initialize-database-type)
(print *initialized-database-types*)

The ODBC database type is now initialized, and connections can be made to ODBC databases.

See also

database-name
*initialized-database-types*
*default-database-type*


LispWorks Reference Manual - 12 Mar 2008

NextPrevUpTopContentsIndex