X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fsql.lisp;h=125de200816019409c9dfbbb448a08639cf31178;hb=86222eed17d958ab28a582a3f1fe6ff2b7c2a8a9;hp=00d96678f81e8b881f9227928b7b4787aed8f591;hpb=fa071351835a2c754895cb917db9c63303e7b5c1;p=clsql.git diff --git a/sql/sql.lisp b/sql/sql.lisp index 00d9667..125de20 100644 --- a/sql/sql.lisp +++ b/sql/sql.lisp @@ -2,13 +2,12 @@ ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; -;;;; Name: sql.cl -;;;; Purpose: High-level SQL interface -;;;; Programmers: Kevin M. Rosenberg based on -;;;; Original code by Pierre R. Mai -;;;; Date Started: Feb 2002 +;;;; Name: sql.cl +;;;; Purpose: High-level SQL interface +;;;; Authors: Kevin M. Rosenberg based on code by Pierre R. Mai +;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: sql.lisp,v 1.3 2002/10/21 07:45:50 kevin Exp $ +;;;; $Id: sql.lisp,v 1.5 2003/05/06 02:27:08 kevin Exp $ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; and Copyright (c) 1999-2001 by Pierre R. Mai @@ -18,16 +17,10 @@ ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ************************************************************************* -(declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0))) -(in-package :clsql-sys) +(eval-when (:compile-toplevel) + (declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0)))) -;;; Modified by KMR -;;; - to use CMUCL-COMPAT library -;;; - fix format strings in error messages -;;; - use field types - - -;;; Simple implementation of SQL along the lines of Harlequin's Common SQL +(in-package #:clsql-sys) ;;; Database handling @@ -65,7 +58,7 @@ (database-type *default-database-type*) (pool nil)) "Connects to a database of the given database-type, using the type-specific -connection-spec. if-exists is currently ignored. +connection-spec. 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. "