X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Fsql.lisp;h=125de200816019409c9dfbbb448a08639cf31178;hb=fce7c4f2a188851c40844cc1b7cface0bf099c6f;hp=b5a7f206dd6692b5ef6c0d7a5913797828ba36c2;hpb=5af9f36bed354358568c4c17c80f9f0b6947b7c6;p=clsql.git diff --git a/sql/sql.lisp b/sql/sql.lisp index b5a7f20..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.2 2002/10/14 15:25:15 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,8 +58,8 @@ (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. -If pool is t the the connection will be taken from the general pool, +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. " (if pool