;;;; 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
(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*))
(: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.")