1 ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
5 ;;;; Name: package.lisp
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
13 ;;;; This file, part of CLSQL, is Copyright (c) 2002-2004 by Kevin M. Rosenberg
14 ;;;; and Copyright (c) 1999-2001 by Pierre R. Mai
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 ;;;; *************************************************************************
21 (in-package #:cl-user)
23 ;;;; This file makes the required package definitions for CLSQL's
26 (defpackage #:clsql-base
29 #:check-connection-spec
30 #:database-type-load-foreign
31 #:database-type-library-loaded ;; KMR - Tests if foreign library okay
32 #:database-initialize-database-type
37 #:database-execute-command
38 #:database-query-result-set
39 #:database-dump-result-set
40 #:database-store-next-row
45 #:database-describe-table
46 #:database-underlying-type
48 #:database-list-tables
49 #:database-list-attributes
50 #:database-attribute-type
51 #:database-create-sequence
52 #:database-drop-sequence
53 #:database-sequence-next
55 #:database-sequence-last
56 #:database-set-sequence-position
57 #:database-list-attributes
58 #:database-list-sequences
59 #:database-list-indexes
60 #:database-list-table-indexes
63 ;; Large objects (Marc B)
64 #:database-create-large-object
65 #:database-write-large-object
66 #:database-read-large-object
67 #:database-delete-large-object
80 #:symbol-name-default-case
81 #:convert-to-db-default-case
88 #:clsql-simple-warning
89 #:clsql-invalid-spec-error
90 #:clsql-invalid-spec-error-connection-spec
91 #:clsql-invalid-spec-error-database-type
92 #:clsql-invalid-spec-error-template
94 #:clsql-access-error-database-type
95 #:clsql-access-error-connection-spec
96 #:clsql-access-error-error
98 #:clsql-connect-error-errno
100 #:clsql-sql-error-database
101 #:clsql-sql-error-expression
102 #:clsql-sql-error-errno
103 #:clsql-sql-error-error
104 #:clsql-database-warning
105 #:clsql-database-warning-database
106 #:clsql-database-warning-message
107 #:clsql-exists-condition
108 #:clsql-exists-condition-new-db
109 #:clsql-exists-condition-old-db
110 #:clsql-exists-warning
113 #:clsql-closed-error-database
114 #:clsql-sql-syntax-error
117 #:clsql-odbc-error-message
119 #:*loaded-database-types*
120 #:reload-database-types
121 #:*default-database-type*
122 #:*initialized-database-types*
123 #:initialize-database-type
124 #:*connect-if-exists*
126 #:connected-databases
130 #:database-name-from-spec
133 ;; accessors for database class
139 #:command-recording-stream
140 #:result-recording-stream
141 #:query-recording-stream
148 #:number-to-sql-string
149 #:float-to-sql-string
175 #:duration-timestring
206 #:time-by-adding-duration
232 ;; recording.lisp -- SQL I/O Recording
234 #:add-sql-stream ; recording xx
235 #:delete-sql-stream ; recording xx
236 #:list-sql-streams ; recording xx
237 #:sql-recording-p ; recording xx
238 #:sql-stream ; recording xx
239 #:start-sql-recording ; recording xx
240 #:stop-sql-recording ; recording xx
242 ;; database.lisp -- Connection
243 #:*default-database-type* ; clsql-base xx
244 #:*default-database* ; classes xx
245 #:connect ; database xx
246 #:*connect-if-exists* ; database xx
247 #:connected-databases ; database xx
248 #:database ; database xx
249 #:database-name ; database xx
250 #:disconnect ; database xx
251 #:reconnect ; database
252 #:find-database ; database xx
253 #:status ; database xx
255 #:with-default-database
267 #:delete-large-object
275 #:rollback-transaction
276 #:add-transaction-commit-hook
277 #:add-transaction-rollback-hook
278 #:commit ; transact xx
279 #:rollback ; transact xx
280 #:with-transaction ; transact xx .
281 #:start-transaction ; transact xx
282 #:in-transaction-p ; transact xx
283 #:database-start-transaction
284 #:database-abort-transaction
285 #:database-commit-transaction
289 ;; Database features specialized by backend
290 #:db-type-use-column-on-drop-index?
292 #:db-type-has-subqueries?
293 #:db-type-has-boolean-where?
294 #:db-type-has-fancy-math?
295 #:db-type-default-case
296 #:db-backend-has-create/destroy-db?
297 #:db-type-transaction-capable?
299 (:documentation "This is the INTERNAL SQL-Interface package of CLSQL-BASE."))