From: Kevin M. Rosenberg Date: Mon, 14 Oct 2002 15:25:15 +0000 (+0000) Subject: r3019: *** empty log message *** X-Git-Tag: v3.8.6~907 X-Git-Url: http://git.kpe.io/?p=clsql.git;a=commitdiff_plain;h=5af9f36bed354358568c4c17c80f9f0b6947b7c6 r3019: *** empty log message *** --- diff --git a/debian/changelog b/debian/changelog index c5e2b59..92f8b96 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +cl-sql (1.0.1-1) unstable; urgency=low + + * Add defgeneric for generic functions + + -- Kevin M. Rosenberg Mon, 14 Oct 2002 09:18:39 -0600 + cl-sql (1.0.0-1) unstable; urgency=low * Add SBCL support diff --git a/sql/sql.lisp b/sql/sql.lisp index 12535e5..b5a7f20 100644 --- a/sql/sql.lisp +++ b/sql/sql.lisp @@ -8,7 +8,7 @@ ;;;; Original code by Pierre R. Mai ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: sql.lisp,v 1.1 2002/09/30 10:19:23 kevin Exp $ +;;;; $Id: sql.lisp,v 1.2 2002/10/14 15:25:15 kevin Exp $ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; and Copyright (c) 1999-2001 by Pierre R. Mai @@ -121,6 +121,7 @@ if the database is from a pool it will be released to this pool." ;;; Basic operations on databases +(defgeneric query (expression &key database types)) (defmethod query (query-expression &key (database *default-database*) types) "Execute the SQL query expression query-expression on the given database. @@ -128,7 +129,7 @@ Returns a list of lists of values of the result of that expression." (database-query query-expression database types)) - +(defgeneric execute-command (expression &key database)) (defmethod execute-command (sql-expression &key (database *default-database*)) "Execute the SQL command expression sql-expression on the given database. Returns true on success or nil on failure." diff --git a/sql/transactions.lisp b/sql/transactions.lisp index d0a4bb7..f710741 100644 --- a/sql/transactions.lisp +++ b/sql/transactions.lisp @@ -7,7 +7,7 @@ ;;;; Programmers: Marc Battyani ;;;; Date Started: Apr 2002 ;;;; -;;;; $Id: transactions.lisp,v 1.1 2002/09/30 10:19:23 kevin Exp $ +;;;; $Id: transactions.lisp,v 1.2 2002/10/14 15:25:15 kevin Exp $ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -26,6 +26,7 @@ (rollback-hooks :initform () :accessor rollback-hooks) (status :initform nil :accessor status))) ;can be nil :rolled-back or :commited +(defgeneric database-start-transaction (database)) (defmethod database-start-transaction ((database closed-database)) (error 'clsql-closed-database-error database)) @@ -39,6 +40,7 @@ (status transaction) nil) (execute-command "BEGIN" :database database)))) +(defgeneric database-end-transaction (database)) (defmethod database-end-transaction ((database closed-database)) (error 'clsql-closed-database-error database))