X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fsql.cl;fp=sql%2Fsql.cl;h=ce3cc56376d2eca6ce991965d2442ad4b2d28259;hb=9a78eef71c902d3b272fb7c777bff6dd0acd8a2b;hp=696997409761613c5f513f462a3e7e065e715838;hpb=b06cb6d32e2a334f7dc72e8fb583a5b9609136b7;p=clsql.git diff --git a/sql/sql.cl b/sql/sql.cl index 6969974..ce3cc56 100644 --- a/sql/sql.cl +++ b/sql/sql.cl @@ -8,7 +8,7 @@ ;;;; Original code by Pierre R. Mai ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: sql.cl,v 1.1 2002/03/23 14:04:54 kevin Exp $ +;;;; $Id: sql.cl,v 1.2 2002/03/24 04:01:26 kevin Exp $ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; and Copyright (c) 1999-2001 by Pierre R. Mai @@ -148,6 +148,10 @@ although there is an existing connection (~A)." (defvar *loaded-database-types* nil "Contains a list of database types which have been defined/loaded.") +(defvar *library-loaded-database-types* nil + "Contains a list of database types which have had their +foreign libraries loaded successfully.") + (defun reload-database-types () "Reloads any foreign code for the loaded database types after a dump." (mapc #'database-type-load-foreign *loaded-database-types*)) @@ -158,6 +162,13 @@ although there is an existing connection (~A)." (:method :after (database-type) (pushnew database-type *loaded-database-types*))) +(defgeneric database-type-library-loaded (database-type) + (:documentation + "The internal generic implementation for checking if +database type library loaded successfully.") + (:method :after (database-type) + (pushnew database-type *library-loaded-database-types*))) + (defvar *default-database-type* nil "Specifies the default type of database. Currently only :mysql is supported.")