r8821: integrate usql support
[clsql.git] / sql / package.lisp
1 ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          package.lisp
6 ;;;; Purpose:       Package definition for CLSQL (high-level) interface
7 ;;;; Programmers:   Kevin M. Rosenberg based on
8 ;;;;                Original code by Pierre R. Mai 
9 ;;;; Date Started:  Feb 2002
10 ;;;;
11 ;;;; $Id$
12 ;;;;
13 ;;;; This file, part of CLSQL, is Copyright (c) 2002-2004 by Kevin M. Rosenberg
14 ;;;; and Copyright (c) 1999-2001 by Pierre R. Mai
15 ;;;;
16 ;;;; CLSQL users are granted the rights to distribute and use this software
17 ;;;; as governed by the terms of the Lisp Lesser GNU Public License
18 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
19 ;;;; *************************************************************************
20
21 (in-package #:cl-user)
22
23 (eval-when (:compile-toplevel :load-toplevel :execute)
24   (defpackage #:clsql-sys
25     (:nicknames #:clsql)
26     (:use #:cl #:clsql-base-sys)
27     (:import-from 
28      #:clsql-base
29      .
30      #1=(
31          #:clsql-condition
32          #:clsql-error
33          #:clsql-simple-error
34          #:clsql-warning
35          #:clsql-simple-warning
36          #:clsql-invalid-spec-error
37          #:clsql-invalid-spec-error-connection-spec
38          #:clsql-invalid-spec-error-database-type
39          #:clsql-invalid-spec-error-template
40          #:clsql-connect-error
41          #:clsql-connect-error-database-type
42          #:clsql-connect-error-connection-spec
43          #:clsql-connect-error-errno
44          #:clsql-connect-error-error
45          #:clsql-sql-error
46          #:clsql-sql-error-database
47          #:clsql-sql-error-expression
48          #:clsql-sql-error-errno
49          #:clsql-sql-error-error
50          #:clsql-database-warning
51          #:clsql-database-warning-database
52          #:clsql-database-warning-message
53          #:clsql-exists-condition
54          #:clsql-exists-condition-new-db
55          #:clsql-exists-condition-old-db
56          #:clsql-exists-warning
57          #:clsql-exists-error
58          #:clsql-closed-error
59          #:clsql-closed-error-database
60          
61          #:*loaded-database-types*
62          #:reload-database-types
63          #:*default-database-type*
64          #:*initialized-database-types*
65          #:initialize-database-type
66          
67          #:database
68          #:database-name
69          #:closed-database
70          #:database-name-from-spec
71          
72          ;; utils.cl
73          #:number-to-sql-string
74          #:float-to-sql-string
75          #:sql-escape-quotes
76          ))
77     (:export
78      ;; sql.cl
79      #:map-query
80      #:do-query
81      #:for-each-row
82      
83      ;; functional.cl
84      #:insert-records
85      #:delete-records
86      #:update-records
87      #:with-database
88      
89      ;; Large objects (Marc B)
90      #:create-large-object
91      #:write-large-object
92      #:read-large-object
93      #:delete-large-object
94
95      .
96      #1#
97      )
98     (:documentation "This is the INTERNAL SQL-Interface package of CLSQL."))
99   
100   )                                     ;eval-when
101
102 (defpackage #:clsql-user
103   (:use #:common-lisp #:clsql)
104   (:documentation "This is the user package for experimenting with CLSQL."))