2004-09-17 06:50:50 -04:00
|
|
|
(define-interface berkeley-db-interface
|
|
|
|
(export
|
2004-09-20 03:03:52 -04:00
|
|
|
|
|
|
|
with-database-env
|
|
|
|
with-database
|
|
|
|
with-database-flags
|
|
|
|
as-transaction
|
|
|
|
|
|
|
|
flag-object?
|
|
|
|
flag-elements
|
|
|
|
flag-name
|
|
|
|
(flag :syntax)
|
|
|
|
|
|
|
|
return-code-object?
|
|
|
|
return-code-elements
|
|
|
|
return-code-name
|
|
|
|
(return-code :syntax)
|
|
|
|
|
2004-09-17 06:50:50 -04:00
|
|
|
database-type-object?
|
|
|
|
database-type-elements
|
|
|
|
database-type-name
|
|
|
|
(database-type :syntax)
|
|
|
|
|
|
|
|
&bdb-error bdb-error?
|
|
|
|
&bdb-lock-deadlock bdb-lock-deadlock?
|
|
|
|
&bdb-lock-not-granted bdb-lock-not-granted?
|
|
|
|
&bdb-old-db-version bdb-old-db-version?
|
|
|
|
&bdb-db-handle-dead bdb-db-handle-dead?
|
|
|
|
&bdb-secondary-index-bad bdb-secondary-index-bad?
|
|
|
|
&bdb-invalid-flag bdb-invalid-flag?
|
|
|
|
|
2004-09-20 03:03:52 -04:00
|
|
|
database?
|
|
|
|
database-env?
|
|
|
|
mpoolfile?
|
|
|
|
transaction?
|
|
|
|
cursor?
|
|
|
|
|
|
|
|
make-database-env
|
|
|
|
database-env-open
|
|
|
|
database-env-close
|
2004-09-21 10:38:59 -04:00
|
|
|
set-database-env-data-dir!
|
|
|
|
database-env-data-dirs
|
|
|
|
set-database-env-encrypt!
|
|
|
|
database-env-encrypt-flags
|
|
|
|
set-database-env-lock-timeout!
|
|
|
|
set-database-env-transaction-timeout!
|
|
|
|
database-env-lock-timeout
|
|
|
|
database-env-transaction-timeout
|
|
|
|
set-database-env-tmp-dir!
|
|
|
|
database-env-tmp-dir
|
|
|
|
set-database-env-flags!
|
|
|
|
clear-database-env-flags!
|
|
|
|
database-env-flags
|
|
|
|
|
|
|
|
remove-database
|
|
|
|
rename-database
|
|
|
|
|
2004-09-20 03:03:52 -04:00
|
|
|
make-database
|
|
|
|
open-database
|
|
|
|
close-database
|
|
|
|
|
|
|
|
database-put
|
|
|
|
database-get
|
|
|
|
database-delete-item
|
|
|
|
database-truncate
|
|
|
|
database-sync
|
2004-09-20 04:21:31 -04:00
|
|
|
|
|
|
|
make-cursor
|
|
|
|
database-get-via-cursor
|
|
|
|
|
2004-09-20 03:03:52 -04:00
|
|
|
begin-transaction
|
|
|
|
abort-transaction
|
|
|
|
commit-transaction
|
|
|
|
|
|
|
|
string->byte-vector
|
|
|
|
byte-vector->string
|
|
|
|
|
|
|
|
value->byte-vector
|
|
|
|
byte-vector->value))
|
2004-09-17 06:50:50 -04:00
|
|
|
|
|
|
|
(define-structure berkeley-db berkeley-db-interface
|
|
|
|
(open scheme
|
|
|
|
srfi-1
|
|
|
|
srfi-34
|
|
|
|
srfi-35
|
|
|
|
fluids
|
|
|
|
weak
|
|
|
|
byte-vectors
|
|
|
|
extended-ports
|
|
|
|
ascii
|
|
|
|
let-opt
|
|
|
|
bitwise
|
|
|
|
define-record-types
|
|
|
|
finite-types
|
|
|
|
external-calls)
|
|
|
|
(files bdb))
|
|
|
|
|