X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=base%2Finitialize.lisp;h=1d96a8f87c34b8c2ac9a86d124d911f93d9af373;hb=db9892632e6eb7869aea7a94c16b523a82de1501;hp=7bb8d1bdff9cade2310ca82b3ea30d8f11e4c2f9;hpb=998937376fa6f9ce29bd3c7954fb0ebca91c37d7;p=clsql.git diff --git a/base/initialize.lisp b/base/initialize.lisp index 7bb8d1b..1d96a8f 100644 --- a/base/initialize.lisp +++ b/base/initialize.lisp @@ -2,14 +2,14 @@ ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; -;;;; Name: initialize.cl +;;;; Name: initialize.lisp ;;;; Purpose: Initializion routines for backend ;;;; Programmers: Kevin M. Rosenberg ;;;; Date Started: May 2002 ;;;; -;;;; $Id: initialize.lisp,v 1.1 2002/09/30 10:19:01 kevin Exp $ +;;;; $Id$ ;;;; -;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg +;;;; This file, part of CLSQL, is Copyright (c) 2002-2004 by Kevin M. Rosenberg ;;;; and Copyright (c) 1999-2001 by Pierre R. Mai ;;;; ;;;; CLSQL users are granted the rights to distribute and use this software @@ -17,12 +17,14 @@ ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ************************************************************************* -(declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0))) -(in-package :clsql-base-sys) +(in-package #:clsql-base-sys) (defvar *loaded-database-types* nil "Contains a list of database types which have been defined/loaded.") +(defmethod database-type-load-foreign (x) + (error "No generic function defined for database-type-load-foreign with parameters of ~S" x)) + (defmethod database-type-load-foreign :after (database-type) (when (database-type-library-loaded database-type) (pushnew database-type *loaded-database-types*))) @@ -32,8 +34,7 @@ (mapc #'database-type-load-foreign *loaded-database-types*)) (defvar *default-database-type* nil - "Specifies the default type of database. Currently only :mysql is -supported.") + "Specifies the default type of database.") (defvar *initialized-database-types* nil "Contains a list of database types which have been initialized by calls @@ -43,9 +44,9 @@ to initialize-database-type.") "Initialize the given database-type, if it is not already initialized, as indicated by `*initialized-database-types*'." (if (member database-type *initialized-database-types*) - t + database-type (when (database-initialize-database-type database-type) (push database-type *initialized-database-types*) - t))) + database-type)))