r2078: Changes to finish separating clsql-base form clsql
[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 CLSQL (high-level) 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.16 2002/05/27 17:19:45 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
25 (eval-when (:compile-toplevel :load-toplevel :execute)
26   (defpackage :clsql-sys
27     (:nicknames :clsql)
28     (:use :common-lisp :clsql-base-sys)
29     (:import-from 
30      :clsql-base
31      .
32      #1=(
33          #:clsql-condition
34          #:clsql-error
35          #:clsql-simple-error
36          #:clsql-warning
37          #:clsql-simple-warning
38          #:clsql-invalid-spec-error
39          #:clsql-invalid-spec-error-connection-spec
40          #:clsql-invalid-spec-error-database-type
41          #:clsql-invalid-spec-error-template
42          #:clsql-connect-error
43          #:clsql-connect-error-database-type
44          #:clsql-connect-error-connection-spec
45          #:clsql-connect-error-errno
46          #:clsql-connect-error-error
47          #:clsql-sql-error
48          #:clsql-sql-error-database
49          #:clsql-sql-error-expression
50          #:clsql-sql-error-errno
51          #:clsql-sql-error-error
52          #:clsql-database-warning
53          #:clsql-database-warning-database
54          #:clsql-database-warning-message
55          #:clsql-exists-condition
56          #:clsql-exists-condition-new-db
57          #:clsql-exists-condition-old-db
58          #:clsql-exists-warning
59          #:clsql-exists-error
60          #:clsql-closed-error
61          #:clsql-closed-error-database
62          
63          #:*loaded-database-types*
64          #:reload-database-types
65          #:*default-database-type*
66          #:*initialized-database-types*
67          #:initialize-database-type
68          
69          #:database
70          #:database-name
71          #:closed-database
72          #:database-name-from-spec))
73     (:export
74      ;; sql.cl
75      #:*connect-if-exists*
76      #:connected-databases
77      #:*default-database*
78      #:find-database
79      #:connect
80      #:disconnect
81      #:query
82      #:execute-command
83      #:map-query
84      #:do-query
85      
86      ;; functional.cl
87      #:insert-records
88      #:delete-records
89      #:update-records
90      #:with-database
91      
92      ;; For High-level UncommonSQL compatibility
93      #:sql-ident
94      #:list-tables
95      #:list-attributes
96      #:attribute-type
97      #:create-sequence 
98      #:drop-sequence
99      #:sequence-next
100      
101      ;; Pooled connections
102      #:disconnect-pooled
103      #:find-or-create-connection-pool
104      
105      ;; Transactions
106      #:with-transaction
107      #:commit-transaction
108      #:rollback-transaction
109      #:add-transaction-commit-hook
110      #:add-transaction-rollback-hook
111      
112      ;; Large objects (Marc B)
113      #:create-large-object
114      #:write-large-object
115      #:read-large-object
116      #:delete-large-object
117      
118      .
119      #1#
120      )
121     (:documentation "This is the INTERNAL SQL-Interface package of CLSQL."))
122   
123   )                                     ;eval-when
124
125 (defpackage #:clsql-user
126   (:use #:common-lisp #:clsql)
127   (:documentation "This is the user package for experimenting with CLSQL."))