Next Previous Up Top Contents Index

16 The SQL Package

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 functioninitialize-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 useinitialize-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 - 15 Oct 1998

Next Previous Up Top Contents Index

Generated with Harlequin WebMaker