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