;;;; 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.3 2002/10/21 07:45:50 kevin Exp $
;;;;
;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
;;;; and Copyright (c) 1999-2001 by Pierre R. Mai
(pool nil))
"Connects to a database of the given database-type, using the type-specific
connection-spec. if-exists is currently ignored.
-If pool is t the the connection will be taken from the general pool,
+If pool is t the connection will be taken from the general pool,
if pool is a conn-pool object the connection will be taken from this pool.
"
(if 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.
(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."