;;;; 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.4 2002/04/28 00:50:17 kevin Exp $
;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;; and Copyright (c) 1999-2001 by Pierre R. Mai
((name :initarg :name :reader database-name)
(connection-spec :initarg :connection-spec :reader connection-spec
:documentation "Require to use connection pool")
- (transaction-level :accessor transaction-level))
+ (transaction-level :initarg :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."))
;;;; Original code by Pierre R. Mai
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: package.cl,v 1.9 2002/04/27 21:48:08 kevin Exp $
+;;;; $Id: package.cl,v 1.10 2002/04/28 00:50:17 kevin Exp $
;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;; and Copyright (c) 1999-2001 by Pierre R. Mai
#:database-sequence-next
#:sql-escape
+
+ ;; Support for pooled connections
+ #:database-type
;; Large objects (Marc B)
#:database-create-large-object
;;;; Programmers: Kevin M. Rosenberg
;;;; Date Started: Apr 2002
;;;;
-;;;; $Id: pool.cl,v 1.1 2002/04/27 20:58:11 kevin Exp $
+;;;; $Id: pool.cl,v 1.2 2002/04/28 00:50:17 kevin Exp $
;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;;
(defun find-or-create-conn-vector (connection-spec database-type)
"Find connection vector in hash table, creates a new conn-vector if not found"
(let* ((key (list connection-spec database-type))
- (conn-vector (gethash *db-pool* key)))
+ (conn-vector (gethash key *db-pool*)))
(unless conn-vector
(setq conn-vector (make-conn-vector))
- (setf (gethash *db-pool* key) conn-vector))
+ (setf (gethash key *db-pool*) conn-vector))
conn-vector))
(defun acquire-from-pool (connection-spec database-type)