X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fclasses.cl;h=4cb643ac71b0230b6d07fa5d0c13ca56dd076df8;hb=865598033baf78cf3ba9da36a031a85eb18849e0;hp=7a3f336a7cc6a61237b37a487e21350e4135341f;hpb=f8478421f5a0440246f70aa4234ff25f416be7e3;p=clsql.git diff --git a/sql/classes.cl b/sql/classes.cl index 7a3f336..4cb643a 100644 --- a/sql/classes.cl +++ b/sql/classes.cl @@ -5,10 +5,10 @@ ;;;; 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.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 @@ -23,9 +23,12 @@ (defclass database () - ((name :initarg :name :reader database-name) - (connection-spec :initarg :connection-spec :reader connection-spec - :documentation "Require to use connection pool")) + ((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 :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.")) @@ -36,12 +39,12 @@ "") 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)