r1769: removed old #:select export
[clsql.git] / sql / package.cl
1 ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          package.cl
6 ;;;; Purpose:       Package definition for high-level SQL interface
7 ;;;; Programmers:   Kevin M. Rosenberg based on
8 ;;;;                Original code by Pierre R. Mai 
9 ;;;; Date Started:  Feb 2002
10 ;;;;
11 ;;;; $Id: package.cl,v 1.6 2002/04/07 15:23:10 kevin Exp $
12 ;;;;
13 ;;;; This file, part of CLSQL, is Copyright (c) 2002 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 (declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0)))
22 (in-package :cl-user)
23
24 ;;;; This file makes the required package definitions for CLSQL's
25 ;;;; core packages.
26 ;;;; 
27
28 (eval-when (:compile-toplevel :load-toplevel :execute)
29 (defpackage :clsql-sys
30   (:use :common-lisp)
31   (:export
32      ;; "Private" exports for use by interface packages
33      #:check-connection-spec
34      #:database-type-load-foreign
35      #:database-type-library-loaded ;; KMR - Tests if foreign library okay
36      #:database-initialize-database-type
37      #:database-connect
38      #:database-disconnect
39      #:database-query
40      #:database-execute-command
41      #:database-query-result-set
42      #:database-dump-result-set
43      #:database-store-next-row
44      
45      ;; For UncommonSQL support
46      #:database-list-tables
47      #:database-list-attributes
48      #:database-attribute-type
49      #:database-create-sequence 
50      #:database-drop-sequence
51      #:database-sequence-next
52     
53      #:sql-escape
54      ;; Shared exports for re-export by CLSQL
55      .
56      #1=(#:clsql-condition
57          #:clsql-error
58          #:clsql-simple-error
59          #:clsql-warning
60          #:clsql-simple-warning
61          #:clsql-invalid-spec-error
62          #:clsql-invalid-spec-error-connection-spec
63          #:clsql-invalid-spec-error-database-type
64          #:clsql-invalid-spec-error-template
65          #:clsql-connect-error
66          #:clsql-connect-error-database-type
67          #:clsql-connect-error-connection-spec
68          #:clsql-connect-error-errno
69          #:clsql-connect-error-error
70          #:clsql-sql-error
71          #:clsql-sql-error-database
72          #:clsql-sql-error-expression
73          #:clsql-sql-error-errno
74          #:clsql-sql-error-error
75          #:clsql-database-warning
76          #:clsql-database-warning-database
77          #:clsql-database-warning-message
78          #:clsql-exists-condition
79          #:clsql-exists-condition-new-db
80          #:clsql-exists-condition-old-db
81          #:clsql-exists-warning
82          #:clsql-exists-error
83          #:clsql-closed-error
84          #:clsql-closed-error-database
85          #:*loaded-database-types*
86          #:reload-database-types
87          #:*default-database-type*
88          #:*initialized-database-types*
89          #:initialize-database-type
90          #:*connect-if-exists*
91          #:*default-database*
92          #:connected-databases
93          #:database
94          #:database-name
95          #:closed-database
96          #:find-database
97          #:database-name-from-spec
98          #:connect
99          #:disconnect
100          #:query
101          #:execute-command
102          #:map-query
103          #:do-query
104
105          ;; functional.cl
106
107          #:insert-records
108          #:delete-records
109          #:update-records
110          #:with-database
111          
112          ;; utils.cl
113          #:number-to-sql-string
114          #:float-to-sql-string
115          #:sql-escape-quotes
116          
117          ;; For UncommonSQL support
118          #:sql-ident
119          #:list-tables
120          #:list-attributes
121          #:attribute-type
122          #:create-sequence 
123          #:drop-sequence
124          #:sequence-next
125          
126          ))
127     (:documentation "This is the INTERNAL SQL-Interface package of CLSQL."))
128
129 (defpackage #:clsql
130     (:import-from #:clsql-sys . #1#)
131     (:export . #1#)
132     (:documentation "This is the SQL-Interface package of CLSQL."))
133 );eval-when
134
135 (defpackage #:clsql-user
136     (:use #:common-lisp #:clsql)
137     (:documentation "This is the user package for experimenting with CLSQL."))