r4863: Auto commit for Debian build
[clsql.git] / base / package.lisp
1 ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          package.cl
6 ;;;; Purpose:       Package definition for base (low-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.lisp,v 1.2 2003/05/07 02:45:08 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 (in-package #:cl-user)
22
23 ;;;; This file makes the required package definitions for CLSQL's
24 ;;;; core packages.
25
26 (eval-when (:compile-toplevel :load-toplevel :execute)
27 (defpackage #:clsql-base-sys
28   (:use #:cl)
29   (:export
30      ;; "Private" exports for use by interface packages
31      #:check-connection-spec
32      #:database-type-load-foreign
33      #:database-type-library-loaded ;; KMR - Tests if foreign library okay
34      #:database-initialize-database-type
35      #:database-connect
36      #:database-disconnect
37      #:database-query
38      #:database-execute-command
39      #:database-query-result-set
40      #:database-dump-result-set
41      #:database-store-next-row
42      
43      ;; For UncommonSQL support
44      #:database-list-tables
45      #:database-list-attributes
46      #:database-attribute-type
47      #:database-create-sequence 
48      #:database-drop-sequence
49      #:database-sequence-next
50      #:sql-escape
51
52      ;; Support for pooled connections
53      #:database-type
54
55      ;; Large objects (Marc B)
56      #:database-create-large-object
57      #:database-write-large-object
58      #:database-read-large-object
59      #:database-delete-large-object
60      
61      ;; Shared exports for re-export by CLSQL-BASE
62      .
63      #1=(#:clsql-condition
64          #:clsql-error
65          #:clsql-simple-error
66          #:clsql-warning
67          #:clsql-simple-warning
68          #:clsql-invalid-spec-error
69          #:clsql-invalid-spec-error-connection-spec
70          #:clsql-invalid-spec-error-database-type
71          #:clsql-invalid-spec-error-template
72          #:clsql-connect-error
73          #:clsql-connect-error-database-type
74          #:clsql-connect-error-connection-spec
75          #:clsql-connect-error-errno
76          #:clsql-connect-error-error
77          #:clsql-sql-error
78          #:clsql-sql-error-database
79          #:clsql-sql-error-expression
80          #:clsql-sql-error-errno
81          #:clsql-sql-error-error
82          #:clsql-database-warning
83          #:clsql-database-warning-database
84          #:clsql-database-warning-message
85          #:clsql-exists-condition
86          #:clsql-exists-condition-new-db
87          #:clsql-exists-condition-old-db
88          #:clsql-exists-warning
89          #:clsql-exists-error
90          #:clsql-closed-error
91          #:clsql-closed-error-database
92          
93          #:*loaded-database-types*
94          #:reload-database-types
95          #:*default-database-type*
96          #:*initialized-database-types*
97          #:initialize-database-type
98          #:*connect-if-exists*
99          #:*default-database*
100          #:connected-databases
101          #:database
102          #:database-name
103          #:closed-database
104          #:find-database
105          #:database-name-from-spec
106
107          ;; accessors for database class
108          #:name
109          #:connection-spec
110          #:transaction
111          #:transaction-level
112          #:conn-pool
113          
114          ;; utils.cl
115          #:number-to-sql-string
116          #:float-to-sql-string
117          #:sql-escape-quotes
118          ))
119     (:documentation "This is the INTERNAL SQL-Interface package of CLSQL-BASE."))
120
121 (defpackage #:clsql-base
122     (:import-from :clsql-base-sys . #1#)
123     (:export . #1#)
124     (:documentation "This is the SQL-Interface package of CLSQL-BASE."))
125 );eval-when
126
127