X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Fdb-interface.lisp;h=8bcc42e964902f388ff840733b49239bb1d36ced;hp=47fc3fdda1e0d3f34b152d581e7072bcc00b03e7;hb=d2d49ab13c98bc7a1819a0fd3968268a5567bdc3;hpb=e55eb4a379e1b081b21d23dcb98aa47d73404908 diff --git a/sql/db-interface.lisp b/sql/db-interface.lisp index 47fc3fd..8bcc42e 100644 --- a/sql/db-interface.lisp +++ b/sql/db-interface.lisp @@ -9,9 +9,7 @@ ;;;; onShoreD to support UncommonSQL front-end ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id$ -;;;; -;;;; This file, part of CLSQL, is Copyright (c) 2002-2004 by Kevin M. Rosenberg +;;;; This file, part of CLSQL, is Copyright (c) 2002-2010 by Kevin M. Rosenberg ;;;; and Copyright (c) 1999-2001 by Pierre R. Mai, and onShoreD ;;;; ;;;; CLSQL users are granted the rights to distribute and use this software @@ -141,17 +139,14 @@ if not found. May signal an error if unable to communicate with database server. (:documentation "Lists all databases found for TYPE. May signal an error if unable to communicate with database server.")) -(defgeneric database-destroy (connection-spec database) - (:documentation "Destroys (drops) a database.")) - (defgeneric database-truncate (database) (:method ((database t)) (signal-no-database-error database)) (:documentation "Remove all data from database.")) -(defgeneric database-destory (connection-spec type) +(defgeneric database-destroy (connection-spec type) (:documentation - "Destroys a database, returns T if successfull or signals an error + "Destroys (drops) a database, returns T if successfull or signals an error if unable to destory.")) (defgeneric database-create-sequence (name database) @@ -377,6 +372,12 @@ of TYPE_NAME (keyword) PRECISION SCALE NULLABLE.") t) (:documentation "T [default] if database-type supports EXCEPT.")) +(defgeneric db-type-has-auto-increment? (db-type) + (:method (db-type) + (declare (ignore db-type) + nil)) + (:documentation "NIL [default] if database-type supports auto-incrementing columns.")) + ;;; Large objects support (Marc Battyani) (defgeneric database-create-large-object (database)