Commit 093edcd4 authored by -urso-'s avatar -urso-

updated documentation and initialized change-logs overview

darcs-hash:7141aa025ce0deb14cf897f69715b27972c90e24
parent 91fb1c7e
Fri May 19 01:36:40 CEST 2006 -urso-@web.de
* made changes for using secondary databases in package 'bdb' available
Sun May 7 23:39:22 CEST 2006 -urso-@web.de
* WARNING: changed output path of make-qbook
Sun May 7 23:06:55 CEST 2006 -urso-@web.de
* added create-assoc-callback for testing secondary databases
Fri May 5 19:18:03 CEST 2006 -urso-@web.de
* add licence information
Thu May 4 18:42:12 CEST 2006 -urso-@web.de
* Initial
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>BDB</title>
<link rel="stylesheet" type="text/css" href="../style.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
</head>
<body>
<div class="header">
<h1>BDB</h1>
<h2>Berkeley DB CFFI bindings</h2>
</div>
<h3>ChangeLog</h3>
<p>
<!--#include file="bdb.log" -->
</p>
<div class="footer">
<a href="mailto:-urso-@web.de">Email</a>
</div>
<div class="check">
<a href="http://validator.w3.org/check/referer"> Valid XHTML 1.0 Strict</a>
</div>
</body>
</html>
Fri May 19 01:30:03 CEST 2006 -urso-@web.de
* export new symbols
Fri May 19 01:27:48 CEST 2006 -urso-@web.de
* added some notes about secondary databases to secondary.lisp
Fri May 19 01:22:46 CEST 2006 -urso-@web.de
* introduced new classes to handle database depending on environment they are opened in, modified methods to handle new classes and added secondary database support depending on database type (which is specified by db-open depending on the environment)
Fri May 19 01:20:19 CEST 2006 -urso-@web.de
* fixed with-txn macro
Fri May 19 01:18:41 CEST 2006 -urso-@web.de
* added :auto-commit flag to db-env-open-flags
Fri May 19 01:16:32 CEST 2006 -urso-@web.de
* added dependencie for db.lisp file
Tue May 16 23:45:45 CEST 2006 -urso-@web.de
* added with-txn macro
Tue May 16 22:01:55 CEST 2006 -urso-@web.de
* export db-get-type
Tue May 16 21:56:16 CEST 2006 -urso-@web.de
* add db-get-type and made db-get-env public
Tue May 16 21:53:59 CEST 2006 -urso-@web.de
* methods using transactions don't rely on using class txn, thus nil instead of using a transaction is valid
Fri May 12 21:34:36 CEST 2006 -urso-@web.de
* some bugfixes in db-open, added db-get-env
Fri May 12 21:32:56 CEST 2006 -urso-@web.de
* added db_get_env and db_dummy_associate to lib and aux-bindings
Fri May 12 01:29:03 CEST 2006 -urso-@web.de
* changed all closing operations to set handles to nil in classes...
Fri May 12 01:27:47 CEST 2006 -urso-@web.de
* fixed typo in src/txn.lisp
Thu May 11 18:01:54 CEST 2006 -urso-@web.de
* forgot to update some functions when updating db, cursor, txn and db-env to classes to handle these classes... update now...
Thu May 11 02:45:57 CEST 2006 -urso-@web.de
* changed txn and related functions to be represneted using clos
Thu May 11 02:37:24 CEST 2006 -urso-@web.de
* changed db-env and related functions to be represneted using clos
Thu May 11 02:17:48 CEST 2006 -urso-@web.de
* modified cursors to be clos classes and changed cursor related functions to be methods
Tue May 9 22:29:35 CEST 2006 -urso-@web.de
* added src/classes.lisp and a class for db. Changed all funs using db handles to methods using db class
Sun May 7 23:39:09 CEST 2006 -urso-@web.de
* WARNING: changed output path of make-qbook
Sun May 7 23:05:42 CEST 2006 -urso-@web.de
* added build-assoc-callback-maker
Sun May 7 23:02:37 CEST 2006 -urso-@web.de
* added some flags to db-open
Sun May 7 22:59:15 CEST 2006 -urso-@web.de
* added src/config.lisp to asdf load file
Fri May 5 21:25:52 CEST 2006 -urso-@web.de
* bugfix: make-get-buffer now adjusts size of newly created buffer
Fri May 5 19:16:52 CEST 2006 -urso-@web.de
* add licence information
Thu May 4 18:41:32 CEST 2006 -urso-@web.de
* Initial
Thu May 11 17:49:14 CEST 2006 -urso-@web.de
* defcfun* macro now adds a check on class types: if argument is nil or the specified slot is nil and the required type is :pointer or :string, pass a null-pointer
Tue May 9 21:32:52 CEST 2006 -urso-@web.de
* added support for generating methods
Sun May 7 23:39:28 CEST 2006 -urso-@web.de
* WARNING: changed output path of make-qbook
Fri May 5 19:13:35 CEST 2006 -urso-@web.de
* add licence information
Thu May 4 18:33:23 CEST 2006 -urso-@web.de
* Initial
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>BDB</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
</head>
<body>
<div class="header">
<h1>BDB</h1>
<h2>Berkeley DB CFFI bindings</h2>
</div>
<h3>ChangeLog</h3>
<p>
</p>
<div class="footer">
<a href="mailto:-urso-@web.de">Email</a>
</div>
<div class="check">
<a href="http://validator.w3.org/check/referer"> Valid XHTML 1.0 Strict</a>
</div>
</body>
</html>
Sun May 7 23:39:47 CEST 2006 -urso-@web.de
* WARNING: changed output path of make-qbook
Fri May 5 18:56:15 CEST 2006 -urso-@web.de
* add licence information
Thu May 4 18:23:27 CEST 2006 -urso-@web.de
* Initial
......@@ -46,17 +46,20 @@
</tr>
</table>
<h3>Packages</h3>
<p>
Sure, the package was supposed too be small, but unfortunatelly it grew and grew, thus it consists/needs several packages:
</p>
<table border="1">
<tr> <th>Package</th><th>Description</th><th>Dependencies</th><th>Documentation</th> </tr>
<tr> <th>Package</th><th>Description</th><th>Dependencies</th><th>Documentation</th> <th>ChangeLog</th> </tr>
<tr>
<td>mycl-util</td>
<td>My private utility package, which i use/develop in, since I'm lerning CL (I'm just very new to CL...) </td>
<td>None</td>
<td> <a href="qbook/mycl-util/index.html">documentation</a> </td>
<td> </td>
</tr>
<tr>
<td>cffi-util</td>
......@@ -71,6 +74,7 @@
<a href="http://weitz.de/flexi-streams">flexi-streams</a>
</td>
<td><a href="qbook/cffi-util/index.html">documentation</a> </td>
<td> </td>
</tr>
<tr>
<td>bdb</td>
......@@ -81,6 +85,7 @@
<a href="http://common-lisp.net/project/bdb">cffi-util</a><br/>
</td>
<td><a href="qbook/bdb/index.html">documentation</a> </td>
<td> </td>
</tr>
<tr>
<td>bdb-playground</td>
......@@ -94,6 +99,7 @@
<a href="http://common-lisp.net/project/cl-store">cl-store</a><br/>
</td>
<td><a href="qbook/bdb-playground/index.html">documentation</a> </td>
<td> </td>
</tr>
</table>
......
......@@ -63,6 +63,27 @@
<pre class="code"
><span class="first-line"><span class="paren">(</span>setf <span class="paren">(</span>symbol-function 'create-assoc-callback<span class="paren">)</span></span><span class"body">
<span class="paren">(</span>build-assoc-callback-maker #'buf-writer #'buf-reader<span class="paren">)</span><span class="paren">)</span></span></pre
>
<pre class="code"
><span class="first-line"><span class="paren">(</span>setf <span class="paren">(</span>symbol-function 'create-assoc-lambda<span class="paren">)</span></span><span class"body">
<span class="paren">(</span>build-cbuffered-assoc-lambda #'buf-writer #'buf-reader<span class="paren">)</span><span class="paren">)</span></span></pre
>
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-STD_0020DB-STD_0020T_0029.html" name="method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-STD_0020DB-STD_0020T_0029"
>Method (DB-ASSOCIATE DB-STD DB-STD T)</a
> </p
></div
>
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-TXN_0020DB-TXN_0020T_0029.html" name="method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-TXN_0020DB-TXN_0020T_0029"
>Method (DB-ASSOCIATE DB-TXN DB-TXN T)</a
> </p
></div
></div
></div
></body
......
......@@ -28,7 +28,10 @@
<pre class="code"
><span class="first-line"><span class="paren">(</span>defpackage bdb-playground</span><span class"body">
<span class="paren">(</span>:use :cl :cl-store :bdb<span class="paren">)</span>
<span class="paren">(</span>:shadow #:db-put #:db-get #:db-cursor-get #:db-cursor-put #:db-del<span class="paren">)</span><span class="paren">)</span></span></pre
<span class="paren">(</span>:shadow #:db-put #:db-get
#:db-cursor-get #:db-cursor-put
#:db-del
#:db-associate<span class="paren">)</span><span class="paren">)</span></span></pre
>
</div
......
<html
><head
><title
>Method (DB-ASSOCIATE DB-STD DB-STD T)</title
><link href="../style.css" rel="stylesheet"
/><link title="Print" href="../print.css" rel="alternate stylesheet"
/></head
><body
><div class="qbook"
><div class="computational-element"
><h1
>Method: (DB-ASSOCIATE DB-STD DB-STD T)</h1
><div class="contents"
><h2
>Source</h2
><pre class="code"
>(defmethod db-associate ((primary db-std) (secondary db-std) callback
&amp;key txn create)
(bdb::db-associate primary secondary
(if (cffi::pointerp callback)
callback
(create-assoc-callback callback))
:txn txn :create create))</pre
><a href="../Database_0020functions.html#method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-STD_0020DB-STD_0020T_0029"
>Source Context</a
></div
></div
></div
></body
></html
>
\ No newline at end of file
<html
><head
><title
>Method (DB-ASSOCIATE DB-TXN DB-TXN T)</title
><link href="../style.css" rel="stylesheet"
/><link title="Print" href="../print.css" rel="alternate stylesheet"
/></head
><body
><div class="qbook"
><div class="computational-element"
><h1
>Method: (DB-ASSOCIATE DB-TXN DB-TXN T)</h1
><div class="contents"
><h2
>Source</h2
><pre class="code"
>(defmethod db-associate ((primary db-txn) (secondary db-txn) callback
&amp;key txn create)
(bdb::db-associate primary secondary
(create-assoc-lambda callback)
:txn txn
:create create))</pre
><a href="../Database_0020functions.html#method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-TXN_0020DB-TXN_0020T_0029"
>Source Context</a
></div
></div
></div
></body
></html
>
\ No newline at end of file
......@@ -27,6 +27,10 @@
><h2
>Indexes</h2
><div class="contents-heading-1"
><a href="index/method.html"
>Method Index</a
></div
><div class="contents-heading-1"
><a href="index/permutated.html"
>Permuted Symbol Index</a
></div
......
<html
><head
><title
>Method Index</title
><link href="../style.css" rel="stylesheet"
/><link title="Print" href="../print.css" rel="alternate stylesheet"
/></head
><body
><div class="qbook"
><div class="api-index"
><h1
>Method Index</h1
><div class="contents"
><dl
><dt
><a href="../api/method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-TXN_0020DB-TXN_0020T_0029.html"
>DB-ASSOCIATE</a
></dt
></dl
></div
></div
></div
></body
></html
>
\ No newline at end of file
......@@ -12,7 +12,63 @@
>Permuted Index</h1
><div class="contents"
><table class="permuted-index-table"
></table
><tr
><td align="right"
><a href="../api/method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-TXN_0020DB-TXN_0020T_0029.html"
>DB-</a
></td
><td
><a href="../api/method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-TXN_0020DB-TXN_0020T_0029.html"
>ASSOCIATE</a
></td
><td
><a href="../api/method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-TXN_0020DB-TXN_0020T_0029.html"
> [Method] </a
></td
></tr
><tr
><td align="right"
><a href="../api/method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-STD_0020DB-STD_0020T_0029.html"
>DB-</a
></td
><td
><a href="../api/method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-STD_0020DB-STD_0020T_0029.html"
>ASSOCIATE</a
></td
><td
><a href="../api/method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-STD_0020DB-STD_0020T_0029.html"
> [Method] </a
></td
></tr
><tr
><td align="right"
><a href="../api/method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-TXN_0020DB-TXN_0020T_0029.html"
></a
></td
><td
><a href="../api/method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-TXN_0020DB-TXN_0020T_0029.html"
>DB-ASSOCIATE</a
></td
><td
><a href="../api/method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-TXN_0020DB-TXN_0020T_0029.html"
> [Method] </a
></td
></tr
><tr
><td align="right"
><a href="../api/method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-STD_0020DB-STD_0020T_0029.html"
></a
></td
><td
><a href="../api/method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-STD_0020DB-STD_0020T_0029.html"
>DB-ASSOCIATE</a
></td
><td
><a href="../api/method_005FBDB-PLAYGROUND_003A_003A_0028DB-ASSOCIATE_0020DB-STD_0020DB-STD_0020T_0029.html"
> [Method] </a
></td
></tr
></table
></div
></div
></div
......
This diff is collapsed.
......@@ -62,7 +62,7 @@
<span class="paren">(</span>:file &quot;db&quot;
:depends-on <span class="paren">(</span>&quot;package&quot; &quot;consts&quot;
&quot;aux-bindings&quot; &quot;bdb&quot; &quot;util&quot;
&quot;config&quot; &quot;classes&quot;<span class="paren">)</span><span class="paren">)</span>
&quot;config&quot; &quot;classes&quot; &quot;txn&quot;<span class="paren">)</span><span class="paren">)</span>
<span class="paren">(</span>:file &quot;cursor&quot;
:depends-on <span class="paren">(</span>&quot;package&quot; &quot;aux-bindings&quot;
&quot;consts&quot;
......
......@@ -25,6 +25,14 @@
>toc</a
></div
>
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-CURSOR_0020T_0029.html" name="method_005FBDB_003A_003A_0028DB-CURSOR_0020T_0029"
>Method (DB-CURSOR T)</a
> </p
></div
>
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-CURSOR_0020DB_0029.html" name="method_005FBDB_003A_003A_0028DB-CURSOR_0020DB_0029"
......@@ -33,9 +41,20 @@
></div
>
<pre class="code"
><span class="first-line"><span class="paren">(</span>defmethod+ <span class="paren">(</span>&quot;db_cursor_close&quot; db-cursor-close<span class="paren">)</span> :int</span><span class"body">
<span class="paren">(</span>cursor :pointer :class <span class="paren">(</span>cursor cursor-handle<span class="paren">)</span><span class="paren">)</span><span class="paren">)</span></span></pre
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-CURSOR_0020DB-TXN_0029.html" name="method_005FBDB_003A_003A_0028DB-CURSOR_0020DB-TXN_0029"
>Method (DB-CURSOR DB-TXN)</a
> </p
></div
>
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-CURSOR-CLOSE_0020CURSOR_0029.html" name="method_005FBDB_003A_003A_0028DB-CURSOR-CLOSE_0020CURSOR_0029"
>Method (DB-CURSOR-CLOSE CURSOR)</a
> </p
></div
>
<div class="computational-element-link computational-element-link-method"
......@@ -83,13 +102,13 @@
<span class="paren">(</span>flags :uint32 :const 0<span class="paren">)</span><span class="paren">)</span></span></pre
>
<pre class="code"
><span class="first-line"><span class="paren">(</span>defmethod+ <span class="paren">(</span>&quot;db_cursor_dup&quot; db-cursor-dup<span class="paren">)</span> :int</span><span class"body">
<span class="paren">(</span>cursor :pointer :class <span class="paren">(</span>cursor cursor-handle<span class="paren">)</span><span class="paren">)</span>
<span class="paren">(</span>dup_cursor :out :pointer<span class="paren">)</span>
<span class="paren">(</span>flags :flag <span class="paren">(</span>:position<span class="paren">)</span><span class="paren">)</span><span class="paren">)</span></span></pre
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-CURSOR-DUP_0020CURSOR_0029.html" name="method_005FBDB_003A_003A_0028DB-CURSOR-DUP_0020CURSOR_0029"
>Method (DB-CURSOR-DUP CURSOR)</a
> </p
></div
>
</div
></div
></body
......
......@@ -33,10 +33,12 @@
></div
>
<pre class="code"
><span class="first-line"><span class="paren">(</span>defmethod+ <span class="paren">(</span>&quot;db_env_close&quot; db-env-close<span class="paren">)</span> :int</span><span class"body">
<span class="paren">(</span>db-env :pointer :class <span class="paren">(</span>db-env db-env-handle<span class="paren">)</span><span class="paren">)</span>
<span class="paren">(</span>flags :uint32 :const 0<span class="paren">)</span><span class="paren">)</span></span></pre
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-ENV-CLOSE_0020DB-ENV_0029.html" name="method_005FBDB_003A_003A_0028DB-ENV-CLOSE_0020DB-ENV_0029"
>Method (DB-ENV-CLOSE DB-ENV)</a
> </p
></div
>
<pre class="code"
......
......@@ -37,6 +37,22 @@
></div
>
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-OPEN-SEC_0020DB-TXN_0029.html" name="method_005FBDB_003A_003A_0028DB-OPEN-SEC_0020DB-TXN_0029"
>Method (DB-OPEN-SEC DB-TXN)</a
> </p
></div
>
<div class="computational-element-link computational-element-link-function"
><p
><a href="api/function_005FBDB_003A_003ATXN-SUPPORT-FOR-HANDLE.html" name="function_005FBDB_003A_003ATXN-SUPPORT-FOR-HANDLE"
>Function TXN-SUPPORT-FOR-HANDLE</a
> </p
></div
>
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-OPEN-FLAGS_0020DB_0029.html" name="method_005FBDB_003A_003A_0028DB-OPEN-FLAGS_0020DB_0029"
......@@ -45,10 +61,36 @@
></div
>
<pre class="code"
><span class="first-line"><span class="paren">(</span>defmethod+ <span class="paren">(</span>&quot;db_close&quot; db-close<span class="paren">)</span> :error-int</span><span class"body">
<span class="paren">(</span>db :pointer :class <span class="paren">(</span>db db-handle<span class="paren">)</span><span class="paren">)</span>
<span class="paren">(</span>flags :flag <span class="paren">(</span>:no-sync<span class="paren">)</span><span class="paren">)</span><span class="paren">)</span></span></pre
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-GET-TYPE_0020DB_0029.html" name="method_005FBDB_003A_003A_0028DB-GET-TYPE_0020DB_0029"
>Method (DB-GET-TYPE DB)</a
> </p
></div
>
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-CLOSE_0020DB_0029.html" name="method_005FBDB_003A_003A_0028DB-CLOSE_0020DB_0029"
>Method (DB-CLOSE DB)</a
> </p
></div
>
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-CLOSE_0020DB-TXN_0029.html" name="method_005FBDB_003A_003A_0028DB-CLOSE_0020DB-TXN_0029"
>Method (DB-CLOSE DB-TXN)</a
> </p
></div
>
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-GET-ENV_0020DB_0029.html" name="method_005FBDB_003A_003A_0028DB-GET-ENV_0020DB_0029"
>Method (DB-GET-ENV DB)</a
> </p
></div
>
......@@ -60,6 +102,15 @@
>
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-PUT_0020T_0020T_0020T_0029.html" name="method_005FBDB_003A_003A_0028DB-PUT_0020T_0020T_0020T_0029"
>Method (DB-PUT T T T)</a
> </p
></div
>
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-PUT_0020DB_0020T_0020T_0029.html" name="method_005FBDB_003A_003A_0028DB-PUT_0020DB_0020T_0020T_0029"
......@@ -68,6 +119,22 @@
></div
>
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-PUT_0020DB-TXN_0020T_0020T_0029.html" name="method_005FBDB_003A_003A_0028DB-PUT_0020DB-TXN_0020T_0020T_0029"
>Method (DB-PUT DB-TXN T T)</a
> callback returns a cbuffer, which will be freed by this put function</p
></div
>
<div class="computational-element-link computational-element-link-function"
><p
><a href="api/function_005FBDB_003A_003AUPDATE-SECONDARY.html" name="function_005FBDB_003A_003AUPDATE-SECONDARY"
>Function UPDATE-SECONDARY</a
> </p
></div
>
<div class="computational-element-link computational-element-link-function"
><p
><a href="api/function_005FBDB_003A_003ABUILD-PUT-FUNCTION.html" name="function_005FBDB_003A_003ABUILD-PUT-FUNCTION"
......@@ -76,6 +143,15 @@
></div
>
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-GET_0020T_0020T_0029.html" name="method_005FBDB_003A_003A_0028DB-GET_0020T_0020T_0029"
>Method (DB-GET T T)</a
> </p
></div
>
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-GET_0020DB_0020T_0029.html" name="method_005FBDB_003A_003A_0028DB-GET_0020DB_0020T_0029"
......@@ -84,6 +160,14 @@
></div
>
<div class="computational-element-link computational-element-link-method"
><p
><a href="api/method_005FBDB_003A_003A_0028DB-GET_0020DB-TXN_0020T_0029.html" name="method_005FBDB_003A_003A_0028DB-GET_0020DB-TXN_0020T_0029"
>Method (DB-GET DB-TXN T)</a
> </p
></div
>
<div class="computational-element-link computational-element-link-function"
><p
><a href="api/function_005FBDB_003A_003ABUILD-GET-FUNCTION.html" name="function_005FBDB_003A_003ABUILD-GET-FUNCTION"
......@@ -128,7 +212,7 @@
<pre class="code"
><span class="first-line"><span class="paren">(</span>defmethod+ <span class="paren">(</span>&quot;db_truncate&quot; db-truncate<span class="paren">)</span> :int</span><span class"body">
<span class="paren">(</span>db :pointer :class <span class="paren">(</span>db db-handle<span class="paren">)</span><span class="paren">)</span>
<span class="paren">(</span>txn :pointer :key<span class="paren">)</span>
<span class="paren">(</span>txn :pointer :key :class txn-handle<span class="paren">)</span>
<span class="paren">(</span>countp :out :uint32<span class="paren">)</span>
<span class="paren">(</span>flags :uint32 :const 0<span class="paren">)</span><span class="paren">)</span></span></pre
>
......
......@@ -29,6 +29,15 @@
><span class="first-line"><span class="paren">(</span>defpackage bdb</span><span class"body">
<span class="paren">(</span>:use :cl :cffi :mycl-util :cffi-util<span class="paren">)</span>
<span class="paren">(</span>:export
;;classes
#:db-env
#:db
#:txn
#:db-std
#:db-txn
#:is-primary
#:is-secondary
;;bdb
#:db-strerr
#:bdb-version-major
......@@ -74,8 +83,10 @@
#:db-open
#:db-open-flags
#:db-close
#:db-get-env
#:db-dbname
#:db-put
#:db-get-type
#:build-put-function
#:db-get
#:build-get-function
......@@ -106,6 +117,7 @@
#:db-associate
#:db-join
#:build-assoc-callback-maker
#:build-cbuffered-assoc-lambda
;;txn
#:db-env-txn-begin
......@@ -118,6 +130,7 @@
#:db-txn-set-timeout
#:db-env-set-timeout
#:db-env-get-timeout
#:with-txn
;;util
#:make-cbuffer-writer
......
......@@ -24,16 +24,61 @@
> | <a href="index.html"
>toc</a
></div
>
><p>
Notes:
the C library handles secondaries like this:
db_create: - will create environment, if none specified and
add to db pointer
db_put/__db_put: - create cursor with write-lock
- use __db_c_put on cursor to insert data
__db_c_put: - uses private flag DB_UPDATE_SECONDARY to do puts on
secondary databases