X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fusql.cl;h=d2a53eccd64868f36136ecd659493182ee37bbba;hb=865598033baf78cf3ba9da36a031a85eb18849e0;hp=c140fc40b6338f905a75d595b9830cb007c55fda;hpb=611b2d3ab3ef5f80b29f5352af2e5a5bf551ce99;p=clsql.git diff --git a/sql/usql.cl b/sql/usql.cl index c140fc4..d2a53ec 100644 --- a/sql/usql.cl +++ b/sql/usql.cl @@ -8,7 +8,7 @@ ;;;; Programmers: Kevin M. Rosenberg and onShore Development Inc ;;;; Date Started: Mar 2002 ;;;; -;;;; $Id: usql.cl,v 1.5 2002/04/06 22:41:37 kevin Exp $ +;;;; $Id: usql.cl,v 1.6 2002/04/07 15:11:21 kevin Exp $ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; and onShore Development Inc @@ -130,3 +130,16 @@ specifies the database to operation on, defaulting to (self stream :type t) (write-string (sql-output self) stream))) + +;; Methods for translating high-level table classes to low-level functions + +(defmethod database-list-attributes ((table sql-ident) database) + (database-list-attributes (string-downcase + (symbol-name (slot-value table 'name))) + database) + ) + +(defmethod database-attribute-type (attribute (table sql-ident) database) + (database-attribute-type attribute (string-downcase + (symbol-name (slot-value table 'name))) + database))