;;;; Name: classes.cl
;;;; Purpose: Classes for High-level SQL interface
;;;; Programmers: Kevin M. Rosenberg based on
-;;;; Original code by Pierre R. Mai
+;;;; original code by Pierre R. Mai
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: classes.cl,v 1.2 2002/04/27 20:58:11 kevin Exp $
+;;;; $Id: classes.cl,v 1.3 2002/04/27 21:48:08 kevin Exp $
;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;; and Copyright (c) 1999-2001 by Pierre R. Mai
(defclass database ()
((name :initarg :name :reader database-name)
(connection-spec :initarg :connection-spec :reader connection-spec
- :documentation "Require to use connection pool"))
+ :documentation "Require to use connection pool")
+ (transaction-level :accessor transaction-level))
+ (:default-initargs :name nil :connection-spec nil :transaction-level 0)
(:documentation
"This class is the supertype of all databases handled by CLSQL."))
"<unbound>")
stream)))
+;; Closed database idea and original code comes from UncommonSQL
(defclass closed-database ()
((name :initarg :name :reader database-name))
(:documentation
- "This class represents all databases after they are closed via
-`disconnect'."))
+ "This class represents databases after they are closed via 'disconnect'."))
(defmethod print-object ((object closed-database) stream)
(print-unreadable-object (object stream :type t :identity t)