r1639: Initial revision
[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.1 2002/03/23 14:04:54 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-initialize-database-type
36      #:database-connect
37      #:database-disconnect
38      #:database-query
39      #:database-execute-command
40      #:database-query-result-set
41      #:database-dump-result-set
42      #:database-store-next-row
43      ;; Shared exports for re-export by CLSQL
44      .
45      #1=(#:clsql-condition
46          #:clsql-error
47          #:clsql-simple-error
48          #:clsql-warning
49          #:clsql-simple-warning
50          #:clsql-invalid-spec-error
51          #:clsql-invalid-spec-error-connection-spec
52          #:clsql-invalid-spec-error-database-type
53          #:clsql-invalid-spec-error-template
54          #:clsql-connect-error
55          #:clsql-connect-error-database-type
56          #:clsql-connect-error-connection-spec
57          #:clsql-connect-error-errno
58          #:clsql-connect-error-error
59          #:clsql-sql-error
60          #:clsql-sql-error-database
61          #:clsql-sql-error-expression
62          #:clsql-sql-error-errno
63          #:clsql-sql-error-error
64          #:clsql-database-warning
65          #:clsql-database-warning-database
66          #:clsql-database-warning-message
67          #:clsql-exists-condition
68          #:clsql-exists-condition-new-db
69          #:clsql-exists-condition-old-db
70          #:clsql-exists-warning
71          #:clsql-exists-error
72          #:clsql-closed-error
73          #:clsql-closed-error-database
74          #:*loaded-database-types*
75          #:reload-database-types
76          #:*default-database-type*
77          #:*initialized-database-types*
78          #:initialize-database-type
79          #:*connect-if-exists*
80          #:*default-database*
81          #:connected-databases
82          #:database
83          #:database-name
84          #:closed-database
85          #:find-database
86          #:database-name-from-spec
87          #:connect
88          #:disconnect
89          #:query
90          #:execute-command
91          #:map-query
92          #:do-query
93          #:insert-records
94          #:delete-records
95          #:update-records
96          #:select
97          #:with-database))
98     (:documentation "This is the INTERNAL SQL-Interface package of CLSQL."))
99
100 (defpackage #:clsql
101     (:import-from #:clsql-sys . #1#)
102     (:export . #1#)
103     (:documentation "This is the SQL-Interface package of CLSQL."))
104 );eval-when
105
106 (defpackage #:clsql-user
107     (:use #:common-lisp #:clsql)
108     (:documentation "This is the user package for experimenting with CLSQL."))