source: project/release/4/sqlite3/trunk/doc.scm @ 15423

Last change on this file since 15423 was 15423, checked in by Thomas Chust, 10 years ago

[sqlite3] Modernization of C API use, support for automatic statement finalization.

File size: 27.7 KB
Line 
1;;;; doc.scm
2;;;; :tabSize=2:indentSize=2:noTabs=true:
3;;;; Documentation of the SQLite3 bindings
4
5(use eggdoc)
6
7(define doc '(
8  (eggdoc:begin
9
10    (name "sqlite3")
11    (description (p "Bindings to version 3.x of the SQLite API."))
12    (author
13      (url "http://www.chust.org/" "Thomas Chust"))
14    (usage)
15    (download "sqlite3.egg")
16    (requires "check-errors" "synch" "miscmacros" "matchable" "sql-null")
17
18    (documentation
19
20      (p "The API of SQLite changed significantly from version 2.x to 3.x. These are new bindings to the modified API, which are reasonably complete -- most procedures that take callback arguments are missing, though.")
21      (p "For in-depth information on the functionality of the routines and general information you should consult the " (url "http://www.sqlite.org/" "SQLite documentation") " as well as this manual.")
22
23      (subsection "Exceptions"
24
25        (p "Unless otherwise indicated, all procedures and methods in this egg may throw an exception of the kind " (tt "(exn sqlite3)") " if something goes wrong. This exception will contain a " (tt "status") " property indicating the return value of the operation that failed:"
26        (table
27          (tr (th "Symbol") (th "Meaning"))
28          #;(tr (td (tt "ok")) (td "Successful result"))
29          (tr (td (tt "error")) (td "SQL error or missing database "))
30          (tr (td (tt "internal")) (td "An internal logic error in SQLite "))
31          (tr (td (tt "permission")) (td "Access permission denied "))
32          (tr (td (tt "abort")) (td "Callback routine requested an abort "))
33          (tr (td (tt "busy")) (td "The database file is locked "))
34          (tr (td (tt "locked")) (td "A table in the database is locked "))
35          (tr (td (tt "no-memory")) (td "A malloc() failed "))
36          (tr (td (tt "read-only")) (td "Attempt to write a readonly database "))
37          (tr (td (tt "interrupt")) (td "Operation terminated by sqlite-interrupt() "))
38          (tr (td (tt "io-error")) (td "Some kind of disk I/O error occurred "))
39          (tr (td (tt "corrupt")) (td "The database disk image is malformed "))
40          (tr (td (tt "not-found")) (td "(Internal Only) Table or record not found "))
41          (tr (td (tt "full")) (td "Insertion failed because database is full "))
42          (tr (td (tt "cant-open")) (td "Unable to open the database file "))
43          (tr (td (tt "protocol")) (td "Database lock protocol error "))
44          (tr (td (tt "empty")) (td "(Internal Only) Database table is empty "))
45          (tr (td (tt "schema")) (td "The database schema changed "))
46          (tr (td (tt "too-big")) (td "Too much data for one row of a table "))
47          (tr (td (tt "constraint")) (td "Abort due to contraint violation "))
48          (tr (td (tt "mismatch")) (td "Data type mismatch "))
49          (tr (td (tt "misuse")) (td "Library used incorrectly "))
50          (tr (td (tt "no-lfs")) (td "Uses OS features not supported on host "))
51          (tr (td (tt "authorization")) (td "Authorization denied"))
52          #;(tr (td (tt "row")) (td (tt "step!") " has another row ready "))
53          (tr (td (tt "done")) (td (tt "step!") " has finished executing, so no further data is ready")))))
54
55      (subsection "Abstract data types"
56
57        (procedure ("(database? OBJECT) " (& "rArr") " BOOLEAN")
58          (p "Checks whether a value represents an SQLite database."))
59        (procedure ("(error-database LOCATION OBJECT [ARGUMENT-NAME]) " (& "rArr") " VOID")
60          (p "Raises a type error saying that a database was expected instead "
61             "of the given value."))
62        (procedure ("(check-database LOCATION OBJECT [ARGUMENT-NAME]) " (& "rArr") " VOID")
63          (p "Raises a type error like " (tt "error-database") " does, unless "
64             "the given value satisfies " (tt "database?")))
65
66        (procedure ("(statement? OBJECT) " (& "rArr") " BOOLEAN")
67          (p "Checks whether the value " (tt "v") " represents an SQL statement."))
68        (procedure ("(error-statement LOCATION OBJECT [ARGUMENT-NAME]) " (& "rArr") " VOID")
69          (p "Raises a type error saying that a statement was expected instead of the given value."))
70        (procedure ("(check-statement LOCATION OBJECT [ARGUMENT-NAME]) " (& "rArr") " VOID")
71          (p "Raises a type error like " (tt "error-statement") " does, unless the given value satisfies " (tt "statement?"))))
72
73      (subsection "Managing databases"
74
75        (procedure ("(open-database PATH) " (& "rArr") " DATABASE")
76          (p "Opens the indicated database file and returns a database object for it.")
77          (p "The given path is subject to the same special expansion as paths passed to " (tt "open-input-file") " and similar procedures."))
78
79        (procedure ("(define-collation DATABASE NAME [PROC]) " (& "rArr") " VOID")
80          (p "If a procedure is given, registers a new collation sequence identified by " (tt "name") " for use in the context of database handle " (tt "db") ". If no procedure is passed, the collation sequence with the given name is removed.")
81          (p (tt "PROC") " should have the signature " (tt "(PROC STRING STRING) " (& "rArr") " FIXNUM") ". It should return a negative number if the first argument sorts before the second, a positive number if the second sorts before the first and zero if they are equal.")
82          (p "As " (tt "PROC") " will be called in a callback context from within " (tt "step!") ", safety measures are installed to avoid throwing any exceptions, invoking continuations or returning invalid values from it. Attempts to do so will result in a " (tt "0") " return value and warning messages."))
83
84        (definition
85          (signatures
86            (signature "procedure" ("(define-function DATABASE NAME N PROC) " (& "rArr") " VOID"))
87            (signature "procedure" ("(define-function DATABASE NAME N STEP-PROC SEED [FINAL-PROC]) " (& "rArr") " VOID")))
88          (p "Registers a new SQL function identified by " (tt "NAME") " for use in the context of the given database handle. If " (tt "STEP-PROC") " and " (tt "SEED") " are given, the new function becomes an aggregate function. Once registered, functions cannot be deleted.")
89          (p (tt "N") " is the number of parameters the new SQL function takes or " (tt "-1") " to allow any number of arguments.")
90          (p (tt "PROC") " should have the signature " (tt "(PROC . PARAMS) " (& "rArr") " OBJECT") ". It is called with the " (tt "N") " parameters given to the SQL function converted into Scheme objects like by " (tt "column-data") ". The return value is converted into an SQLite data object like by " (tt "bind!") ". A return value satisfying " (tt "sql-null?") " corresponds to " (tt "NULL") " in SQLite.")
91          (p (tt "STEP-PROC") " should have the signature " (tt "(STEP-PROC SEED . PARAMS) " (& "rArr") " SEED") ". It is called with the parameters given to the SQL function for every row being processed. The seed value passed is initially the one given as an argument to " (tt "define-function") "; for subsequent calls it is the last value returned by " (tt "STEP-PROC") " and after completion of " (tt "FINAL-PROC") " it will be the initial value again.")
92          (p (tt "FINAL-PROC") " should have the signature " (tt "(FINAL-PROC SEED) " (& "rArr") " OBJECT") " and transforms the last seed value into the value to be returned from the aggregate function. If it is not explicitly specified, " (tt "STEP-PROC") " defaults to the identity function.")
93          (p "As " (tt "PROC") ", " (tt "STEP-PROC") " and " (tt "FINAL-PROC") " will be called in a callback context from within " (tt "step!") ", safety measures are installed to avoid throwing any exceptions, invoking continuations or returning invalid values from them. Attempts to do such things will result in " (tt "NULL") " return values and warning messages."))
94
95        (procedure ("(set-busy-handler! DATABASE PROC) " (& "rArr") " VOID")
96          (p "Installs the supplied procedure as the application's busy handler, or removes it if " (tt "#f") ".  When the database returns a busy error code, the egg will invoke this handler repeatedly until it returns " (tt "#f") ".  The handler will be called with arguments " (tt "DATABASE") " and " (tt "COUNT") " (number of times invoked for the same operation).")
97          (p "As " (tt "PROC") " is not called in a callback context, it is legal to invoke captured continuations, and it is safe in the presence of multiple threads.  In general, this handler should give up at some point to avoid possible deadlock.")
98          (p "For an example handler, see the code of " (tt "make-busy-timeout") "."))
99        (procedure ("(make-busy-timeout MS) " (& "rArr") " PROC")
100          (p "Returns a handler suitable for use with " (tt "set-busy-handler!") ". It polls in increasing intervals until the timeout in milliseconds is reached. The handler is non-blocking.")
101          (pre ";; Example:
102(define open-database/timeout
103  (let ((handler (make-busy-timeout 2000)))
104    (lambda (db-name)
105      (let ((db (open-database db-name)))
106  (set-busy-handler! db handler)
107  db))))"))
108
109        (procedure ("(interrupt! DATABASE) " (& "rArr") " VOID")
110          (p "Cancels any running database operation as soon as possible.")
111          (p "This function is always successful and never throws an exception."))
112
113        (procedure ("(auto-committing? DATABASE) " (& "rArr") " BOOLEAN")
114          (p "Checks whether the database is currently in auto committing mode, i.e. no transaction is currently active.")
115          (p "This function always returns a state and never throws an exception."))
116
117        (procedure ("(change-count DATABASE [TOTAL]) " (& "rArr") " CARDINAL-INTEGER")
118          (p "Returns the number of rows changed by the last statement (if " (tt "(not TOTAL)") ", which is the default) or since the database was opened (if " (tt "TOTAL") ").")
119          (p "This function always returns a count and never throws an exception."))
120
121        (procedure ("(last-insert-rowid DATABASE) " (& "rArr") " INTEGER")
122          (p "Returns the row ID of the last row inserted in " (tt "db") ".")
123          (p "This function always returns a number and never throws an exception."))
124
125        (definition
126          (signatures
127            (signature "procedure" ("(finalize! DATABASE [FINALIZE-STATEMENTS?]) " (& "rArr") " VOID"))
128            (signature "procedure" ("(finalize! STATEMENT) " (& "rArr") " VOID")))
129          (p "Closes the given database or finalizes the given statement.")
130          (p "Every statement must be finalized to free its resources and discard it before the database itself can be finalized. However, if " (tt "FINALIZE-STATEMENTS?") " is not " (tt "#f") ", finalizing the database triggers automatic finalization of all statements first. " (tt "FINALIZE-STATEMENTS?") " defaults to " (tt "#f") ".")
131          (p "Note that both the SQLite3 egg and the SQLite3 library itself try to detect the use of already finalized statement or database handles in API calls, but the detection is not always possible and you might crash the program by using an already finalized handle.")))
132
133      (subsection "Managing statements"
134
135        (procedure ("(prepare DATABASE SQL) " (& "rArr") " STATEMENT, SQL")
136          (p "Compiles the first SQL statement in " (tt "SQL") " and returns a statement and the tail of the SQL code, which was not compiled (or an empty string)."))
137
138        (procedure ("(source-sql STATEMENT) " (& "rArr") " STRING")
139          (p "Retrieves the SQL source code of a statement."))
140
141        (procedure ("(column-count STATEMENT) " (& "rArr") " CARDINAL-INTEGER")
142          (p "Can be applied to any statement and returns the number of columns it will return as results.")
143          (p "This procedure always succeeds and never throws an exception."))
144
145        (procedure ("(column-name STATEMENT I) " (& "rArr") " STRING")
146          (p "Can be applied to any statement and returns the name of the column number " (tt "I") " (counting from 0) as a string or " (tt "#f") " if the column has no name.")
147          (p "This procedure always succeeds and never throws an exception."))
148
149        (procedure ("(column-declared-type STATEMENT I) " (& "rArr") " STRING")
150          (p "Can be applied to any statement and returns the declared type (as given in the " (tt "CREATE") " statement) of the column number " (tt "I") " (counting from 0) as a string or " (tt "#f") " if the column has no declared type.")
151          (p "This procedure always succeeds and never throws an exception."))
152
153        (procedure ("(bind-parameter-count STATEMENT) " (& "rArr") " CARDINAL-INTEGER")
154          (p "Can be applied to any statement and returns the number of free parameters that can be bound in the statement.")
155          (p "This procedure always succeeds and never throws an exception."))
156
157        (procedure ("(bind-parameter-index STATEMENT NAME) " (& "rArr") " CARDINAL-INTEGER")
158          (p "Can be applied to any statement and returns the index of the bindable parameter called " (tt "NAME") " or " (tt "#f") " if no such parameter exists.")
159          (p "This procedure always succeeds and never throws an exception."))
160
161        (procedure ("(bind-parameter-name STATEMENT I) " (& "rArr") " STRING")
162          (p "Can be applied to any statement and returns the name of the bindable parameter number " (tt "I") " (counting from 0) or " (tt "#f") " if no such parameter exists or the parameter has no name.")
163          (p "This procedure always succeeds and never throws an exception."))
164
165        (procedure ("(bind! STATEMENT I OBJECT) " (& "rArr") " VOID")
166          (p "Can be applied to any statement to bind its free parameter number " (tt "I") " (counting from 0) to the given value. Scheme types of the value map to SQLite types as follows:"
167          (table
168            (tr (th "Scheme type") (th "SQLite type"))
169            (tr (td (tt "boolean?")) (td (tt "integer: #t = 1, #f = 0")))
170            (tr (td (tt "fixnum?")) (td (tt "integer")))
171            (tr (td (tt "real?")) (td (tt "float")))
172            (tr (td (tt "string?")) (td (tt "text")))
173            (tr (td (tt "blob?")) (td (tt "blob")))
174            (tr (td (tt "sql-null?")) (td (tt "null")))))
175          (p "Unless there is internal trouble in SQLite, this method should always succeeds and never throw an exception. For invalid parameter indices the method just silently does nothing."))
176
177        (procedure ("(bind-parameters! STATEMENT . PARAMETERS) " (& "rArr") " VOID")
178          (p "Resets the statement and binds all its free parameters.")
179          (p "In addition to just listing the values to bind to the statement's parameters in sequence, you may specify parameters prefixed by keywords that are resolved to parameter indices by prefixing their names with " (tt "\":\"") " and resolving them using " (tt "bind-parameter-index") "."))
180
181        (procedure ("(step! STATEMENT) " (& "rArr") " BOOLEAN")
182          (p "Single-steps the execution of " (tt "STATEMENT") " and returns " (tt "#t") " if a result row was produced, " (tt "#f") " if no further results are available as the statement has been stepped through. This procedure must be called at least once before any results can be retrieved from the statement."))
183
184        (procedure ("(column-type STATEMENT I) " (& "rArr") " SYMBOL")
185          (p "Can be applied to a statement that has just been stepped (otherwise it returns " (tt "#f") ") and returns the SQLite type of the result column number " (tt "I") " (counting from 0) as a symbol.")
186          (p "The return value can be one of the symbols " (tt "null") ", " (tt "integer") ", " (tt "float") ", " (tt "text") " or " (tt "blob") ".")
187          (p "This procedure always succeeds and never throws an exception."))
188
189        (procedure ("(column-data STATEMENT I) " (& "rArr") " OBJECT")
190          (p "Can be applied to a statement that has just been stepped. Consults " (tt "column-type") " and " (tt "column-declared-type") " to determine the type of the indicated column and to return its data as an appropriate Scheme object:"
191          (table
192            (tr (th "SQLite type") (th "Scheme type"))
193            (tr (td (tt "integer") ", declared " (tt "\"bool\"")) (td (tt "boolean?")))
194            (tr (td (tt "integer")) (td (tt "integer?")))
195            (tr (td (tt "float")) (td (tt "real?")))
196            (tr (td (tt "text")) (td (tt "string?")))
197            (tr (td (tt "blob")) (td (tt "blob?")))
198            (tr (td (tt "null")) (td (tt "sql-null?")))))
199          (p "The declared type of a column is considered to be boolean if the type declaration contains the character sequence \"bool\" anywhere, ignoring case.")
200          (p "This procedure always succeeds and never throws an exception."))
201
202        (procedure ("(reset! STATEMENT) " (& "rArr") " VOID")
203          (p "Can be applied to any statement and resets it such that execution using " (tt "step!") " will perform all operations of the statement again.")))
204
205      (subsection "Simple statement interface"
206
207        (procedure ("(call-with-temporary-statements PROC DATABASE . SQLS) " (& "rArr") " OBJECT")
208          (p "Compiles the SQL sources into statements in the context of " (tt "DATABASE") ", applies " (tt "PROC") " to these statements and returns " (tt "PROC") "'s result. The statements are created and finalized in " (tt "dynamic-wind") " entry and exit blocks around the application of " (tt "PROC") "."))
209
210        (definition
211          (signatures
212            (signature "procedure" ("(execute STATEMENT . PARAMETERS) " (& "rArr") " VOID"))
213            (signature "procedure" ("(execute DATABASE SQL . PARAMETERS) " (& "rArr") " VOID")))
214          (p "(Compiles the given SQL), resets the statement, binds the statement's free parameters and executes the statement ignoring possible results from it."))
215
216        (definition
217          (signatures
218            (signature "procedure" ("(update STATEMENT . PARAMETERS) " (& "rArr") " CARDINAL-INTEGER"))
219            (signature "procedure" ("(update DATABASE SQL . PARAMETERS) " (& "rArr") " CARDINAL-INTEGER")))
220          (p "(Compiles the given SQL), resets the statement, binds the statement's free parameters and executes the specified statement ignoring possible results from it, returning the result of applying " (tt "change-count") " to the affected database after the execution of the statement instead."))
221
222        (definition
223          (signatures
224            (signature "procedure" ("(first-result STATEMENT . PARAMETERS) " (& "rArr") " OBJECT"))
225            (signature "procedure" ("(first-result DATABASE SQL . PARAMETERS) " (& "rArr") " OBJECT")))
226          (p "(Compiles the given SQL), resets the statement, binds the statement's free parameters and single-steps the statement once returning the value of the first column in the first result row. Resets the statement again just before returning.")
227          (p "If the given statement does not yield any results, an " (tt "(exn sqlite3)") " is thrown with the " (tt "status") "-property set to " (tt "done") "."))
228
229        (definition
230          (signatures
231            (signature "procedure" ("(first-row STATEMENT . PARAMETERS) " (& "rArr") " LIST"))
232            (signature "procedure" ("(first-row DATABASE SQL . PARAMETERS) " (& "rArr") " LIST")))
233          (p "(Compiles the given SQL), resets the statement, binds the statement's free parameters and single-steps the statement once returning all columns in the first result row as a list.")
234          (p "If the given statement does not yield any results, an " (tt "(exn sqlite3)") " is thrown with the " (tt "status") "-property set to " (tt "done") "."))
235
236        (definition
237          (signatures
238            (signature "procedure" ("(fold-row PROC INIT STATEMENT . PARAMETERS) " (& "rArr") " OBJECT"))
239            (signature "procedure" ("(fold-row PROC INIT DATABASE SQL . PARAMETERS) " (& "rArr") " OBJECT")))
240          (p "(Compiles the given SQL), resets the statement, binds the statement's free parameters and executes it step by step. After each step, the column values of the current result row are retrieved and " (tt "PROC") " is applied to the current folded value, set to " (tt "INIT") " in the first step, and the column values. The result of the application becomes the new folded value."))
241
242        (definition
243          (signatures
244            (signature "procedure" ("(for-each-row PROC STATEMENT . PARAMETERS) " (& "rArr") " VOID"))
245            (signature "procedure" ("(for-each-row PROC DATABASE SQL . PARAMETERS) " (& "rArr") " VOID")))
246          (p "(Compiles the given SQL), resets the statement, binds the statement's free parameters and executes it step by step. After each step, the column values of the current result row are retrieved and " (tt "PROC") " is applied to them. The results of this application are discarded."))
247
248        (definition
249          (signatures
250            (signature "procedure" ("(map-row PROC STATEMENT . PARAMETERS) " (& "rArr") " LIST"))
251            (signature "procedure" ("(map-row PROC DATABASE SQL . PARAMETERS) " (& "rArr") " LIST")))
252          (p "(Compiles the given SQL), resets the statement, binds the statement's free parameters and executes it step by step. After each step, the column values of the current result row are retrieved and " (tt "PROC") " is applied to them. The results of these applications are collected into a list.")))
253
254      (subsection "Utility functions"
255
256        (procedure ("(with-transaction DATABASE THUNK [TYPE]) " (& "rArr") " OBJECT")
257          (p "Runs " (tt "THUNK") " within the scope of a transaction on the database and returns the return value from " (tt "THUNK") ".")
258          (p "The transaction is committed upon exit from " (tt "THUNK") " if " (tt "THUNK") " returns a true value. If " (tt "THUNK") " returns a false value or throws an exception, the transaction is rolled back.")
259          (p "The " (tt "TYPE") " of the transaction can be specified as one of the symbols " (tt "deferred") "(the default), " (tt "immediate") " or " (tt "exclusive") "."))
260
261        (procedure ("(sql-complete? SQL) " (& "rArr") " BOOLEAN")
262          (p "Checks whether " (tt "SQL") " comprises at least one complete SQL statement."))
263
264        (procedure ("(enable-shared-cache! BOOLEAN) " (& "rArr") " VOID")
265          (p "Enables (or disables) the sharing of the database cache and schema data structures between connections to the same database."))
266
267        (procedure ("(database-version) " (& "rArr") " STRING")
268          (p "Returns a string identifying the version of SQLite in use."))
269
270        (procedure ("(database-memory-used) " (& "rArr") " CARDINAL-INTEGER")
271          (p "Returns the amount of memory currently in use by the database engine."))
272
273        (procedure ("(database-memory-highwater [RESET?]) " (& "rArr") " CARDINAL-INTEGER")
274          (p "Returns the maximum amount of memory that was in use by the database engine since the counter was last reset or since the program started. Resets the counter if " (tt "RESET?") " is not " (tt "#f") ". " (tt "RESET?") " defaults to " (tt "#f") "."))))
275
276    (history
277      (version "3.5.0" "Switched to less error prone internal C API")
278      (version "3.4.0" "Added optional automatic statement finalization when a database is finalized")
279      (version "3.3.1" "Added bindings for database memory statistics")
280      (version "3.3.0" "Switched to using " (tt "(sql-null)") " for " (tt "NULL") " values")
281      (version "3.2.1" "Added a test suite")
282      (version "3.2.0" "Removed the unsafe busy handler and timeout APIs, since a safe API exists")
283      (version "3.1.0" (tt "bind-parameters!") " can now handle keyword arguments")
284      (version "3.0.0" "Ported to CHICKEN 4, removed dependencies on TinyCLOS and EasyFFI")
285      (version "2.0.8" "Add busy handler callbacks; ensure finalize! is called on exception. [Jim Ursetto]")
286      (version "2.0.7" "Restore error reporting. [Jim Ursetto]")
287      (version "2.0.6" "Add " (tt "enable-shared-cache!") ", requires 3.3.0 or later. [Jim Ursetto]")
288      (version "2.0.5" "Added some <boolean> support. Change for NULL (<void>) handling. [Kon Lovett]")
289      (version "2.0.4" "Added " (code "sqlite3:fold-row") " & " (code "sqlite3:bind-parameters!") ". Fix for introduced bug in " (code "sqlite3:changes") ". [Kon Lovett]")
290      (version "2.0.3" "Added " (code "sqlite3:null-value") ", " (code "sqlite3:null-value?") ", and " (code "sqlite3:null") ". [Kon Lovett]")
291      (version "2.0.2" "Use of extended " (tt "define-foreign-enum") ". Removed deprecated " (tt "pointer") " use. [Kon Lovett]")
292      (version "2.0.1" "Deprecated " (tt "<byte-vector>") ", use " (tt "<blob>") " [Kon Lovett]")
293      (version "2.0.0" "Now using " (tt "(void)") " to represent " (tt "NULL"))
294      (version "1.5.9" "dll extension not used anymore in newer chickens [felix]")
295      (version "1.5.8" "Update for synch 1.3 [Kon Lovett]")
296      (version "1.5.7" "Updated compiler flags to pull in tinyclos and easyffi")
297      (version "1.5.6" "Replaced deprecated synch operations [Kon Lovett]")
298      (version "1.5.5" "Correction in the documentation, added sqlite3:with-transaction")
299      (version "1.5.4" "Typo fixed thanks to the new imports checking code")
300      (version "1.5.3" "Proper multithreading locks for the callback code")
301      (version "1.5.2" "Code cleanups")
302      (version "1.5.1" "Potential memory leaks removed")
303      (version "1.5.0" "Support for user defined collation sequences and functions has been added")
304      (version "1.4.0" "Stale statement handles due to schema changes are now automagically recompiled to keep them valid")
305      (version "1.3.1" "Several small routines added")
306      (version "1.3.0" "Special hacks removed as CVS version of SQLite3.3.4 has been fixed")
307      (version "1.2.0" "Special hacks to deal with \"valid\" " (tt "NULL") " statements")
308      (version "1.1.4" "Tightened security measures against " (tt "#f") " pointers")
309      (version "1.1.3" "Integers not fitting in a fixnum are now read correctly from the database [thanks to Zbigniew]")
310      (version "1.1.2" "Setup file patched to call compiled output .dll on Windows")
311      (version "1.1.1" "All procedures now reset prepared statements where you would do that by hand anyway")
312      (version "1.1.0" "Promoted " (tt "sqlite3:call-with-temporary-statement") " to " (tt "sqlite3:call-with-temporary-statements") " and fixed a really stupid coding mistake in " (tt "sqlite3:changes"))
313      (version "1.0.3" "Fixed C compiler warnings")
314      (version "1.0.2" "Added a typecheck for increased safety")
315      (version "1.0.1" "Fixed type mistakes in the source")
316      (version "1.0.0" "Initial release") )
317
318     (license #<<EOS
319Copyright (c) 2005-2009, Thomas Chust <chust@web.de>.  All rights reserved.
320
321Redistribution and use in source and binary forms, with or without
322modification, are permitted provided that the following conditions are met:
323
324  Redistributions of source code must retain the above copyright notice,
325  this list of conditions and the following disclaimer. Redistributions in
326  binary form must reproduce the above copyright notice, this list of
327  conditions and the following disclaimer in the documentation and/or
328  other materials provided with the distribution. Neither the name of the
329  author nor the names of its contributors may be used to endorse or
330  promote products derived from this software without specific prior
331  written permission.
332
333THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
334IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
335THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
336PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
337CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
338EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
339PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
340PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
341LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
342NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
343SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
344EOS
345) ) ) )
346
347(eggdoc->html doc
348  (append (eggdoc:make-stylesheet doc)
349    `((method *macro* . ,eggdoc:make-defsig))))
Note: See TracBrowser for help on using the repository browser.