r8811: add support for usql backend, integrate Marcus Pearce <ek735@soi.city.ac.uk...
[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$
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      #:database-sequence-last
52      #:database-set-sequence-position
53      #:database-list-attributes
54      #:database-list-sequences
55      #:database-list-indexes
56      #:database-list-views
57      
58      ;; Support for pooled connections
59      #:database-type
60
61      ;; Large objects (Marc B)
62      #:database-create-large-object
63      #:database-write-large-object
64      #:database-read-large-object
65      #:database-delete-large-object
66      
67      ;; Shared exports for re-export by CLSQL-BASE
68      .
69      #1=(#:clsql-condition
70          #:clsql-error
71          #:clsql-simple-error
72          #:clsql-warning
73          #:clsql-simple-warning
74          #:clsql-invalid-spec-error
75          #:clsql-invalid-spec-error-connection-spec
76          #:clsql-invalid-spec-error-database-type
77          #:clsql-invalid-spec-error-template
78          #:clsql-connect-error
79          #:clsql-connect-error-database-type
80          #:clsql-connect-error-connection-spec
81          #:clsql-connect-error-errno
82          #:clsql-connect-error-error
83          #:clsql-sql-error
84          #:clsql-sql-error-database
85          #:clsql-sql-error-expression
86          #:clsql-sql-error-errno
87          #:clsql-sql-error-error
88          #:clsql-database-warning
89          #:clsql-database-warning-database
90          #:clsql-database-warning-message
91          #:clsql-exists-condition
92          #:clsql-exists-condition-new-db
93          #:clsql-exists-condition-old-db
94          #:clsql-exists-warning
95          #:clsql-exists-error
96          #:clsql-closed-error
97          #:clsql-closed-error-database
98          #:clsql-sql-syntax-error
99          #:clsql-type-error
100          
101          #:*loaded-database-types*
102          #:reload-database-types
103          #:*default-database-type*
104          #:*initialized-database-types*
105          #:initialize-database-type
106          #:*connect-if-exists*
107          #:*default-database*
108          #:connected-databases
109          #:database
110          #:database-name
111          #:closed-database
112          #:find-database
113          #:database-name-from-spec
114
115          ;; accessors for database class
116          #:name
117          #:connection-spec
118          #:transaction
119          #:transaction-level
120          #:conn-pool
121          
122          ;; utils.cl
123          #:number-to-sql-string
124          #:float-to-sql-string
125          #:sql-escape-quotes
126          ))
127     (:documentation "This is the INTERNAL SQL-Interface package of CLSQL-BASE."))
128
129 (defpackage #:clsql-base
130     (:import-from :clsql-base-sys . #1#)
131     (:export . #1#)
132     (:documentation "This is the SQL-Interface package of CLSQL-BASE."))
133 );eval-when
134
135