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