X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=base%2Fclasses.lisp;h=f2220f69cbe82ac9a29f07effe0b2da3ac0e1aa9;hb=1dda729b250779079efbdc1d3f6bbb3ae4a20ba4;hp=7281f552b430458f73a31fa7c8b122b7477bdb54;hpb=3ec4277531c7c19b1cffade823d3e2e3f928ceb3;p=clsql.git diff --git a/base/classes.lisp b/base/classes.lisp index 7281f55..f2220f6 100644 --- a/base/classes.lisp +++ b/base/classes.lisp @@ -18,7 +18,7 @@ ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ************************************************************************* -(in-package #:clsql-base-sys) +(in-package #:clsql-base) (defclass database () @@ -36,7 +36,11 @@ (schema :accessor database-schema :initform nil) (transaction-level :initform 0 :accessor transaction-level) (transaction :initform nil :accessor transaction) - (conn-pool :initform nil :initarg :conn-pool :accessor conn-pool)) + (conn-pool :initform nil :initarg :conn-pool :accessor conn-pool) + (attribute-cache :initform (make-hash-table :size 100 :test 'equal) + :accessor attribute-cache + :documentation "Internal cache of table attributes. It is keyed by table-name. Values +are a list of ACTION specified for table and any cached value of list-attributes-types.")) (:documentation "This class is the supertype of all databases handled by CLSQL.")) @@ -48,3 +52,4 @@ "") (database-state object)))) +