r2006: debian
[clsql.git] / sql / classes.cl
index 72e44c7dcb9a6e139d015f0fbea42127836ae8a8..4cb643ac71b0230b6d07fa5d0c13ca56dd076df8 100644 (file)
@@ -8,7 +8,7 @@
 ;;;;                 original code by Pierre R. Mai 
 ;;;; Date Started:  Feb 2002
 ;;;;
-;;;; $Id: classes.cl,v 1.3 2002/04/27 21:48:08 kevin Exp $
+;;;; $Id: classes.cl,v 1.6 2002/05/07 10:19:13 marc.battyani 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
+  ((name :initform nil :initarg :name :reader database-name)
+   (connection-spec :initform nil :initarg :connection-spec :reader connection-spec
                    :documentation "Require to use connection pool")
-   (transaction-level :accessor transaction-level))
-  (:default-initargs :name nil :connection-spec nil :transaction-level 0)
+   (transaction-level :initform 0 :accessor transaction-level)
+   (transaction :initform nil :accessor transaction)
+   (conn-pool :initform nil :initarg :conn-pool :accessor conn-pool))
   (:documentation
    "This class is the supertype of all databases handled by CLSQL."))