This is the cl-tokyo-cabinet Reference Manual, version 0.3.0, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 08 17:27:36 2024 GMT+0.
cl-tokyo-cabinet/cl-tokyo-cabinet.asd
cl-tokyo-cabinet/cl-tokyo-cabinet/package.lisp
cl-tokyo-cabinet/cl-tokyo-cabinet/tokyo-cabinet-ffi.lisp
cl-tokyo-cabinet/cl-tokyo-cabinet/tokyo-cabinet.lisp
cl-tokyo-cabinet/cl-tokyo-cabinet/tokyo-cabinet-bdb.lisp
cl-tokyo-cabinet/cl-tokyo-cabinet/tokyo-cabinet-hdb.lisp
cl-tokyo-cabinet/cl-tokyo-cabinet/tokyo-cabinet-fdb.lisp
The main system appears first, followed by any subsystem dependency.
cl-tokyo-cabinet
Keith James
New BSD
0.3.0
deoxybyte-systems
(system)., at least version "1.0.0"
cffi
(system)., at least version "0.10.3"
cl-tokyo-cabinet
(module).
Modules are listed depth-first from the system components tree.
cl-tokyo-cabinet/cl-tokyo-cabinet
cl-tokyo-cabinet
(system).
package.lisp
(file).
tokyo-cabinet-ffi.lisp
(file).
tokyo-cabinet.lisp
(file).
tokyo-cabinet-bdb.lisp
(file).
tokyo-cabinet-hdb.lisp
(file).
tokyo-cabinet-fdb.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
cl-tokyo-cabinet/cl-tokyo-cabinet.asd
cl-tokyo-cabinet/cl-tokyo-cabinet/package.lisp
cl-tokyo-cabinet/cl-tokyo-cabinet/tokyo-cabinet-ffi.lisp
cl-tokyo-cabinet/cl-tokyo-cabinet/tokyo-cabinet.lisp
cl-tokyo-cabinet/cl-tokyo-cabinet/tokyo-cabinet-bdb.lisp
cl-tokyo-cabinet/cl-tokyo-cabinet/tokyo-cabinet-hdb.lisp
cl-tokyo-cabinet/cl-tokyo-cabinet/tokyo-cabinet-fdb.lisp
cl-tokyo-cabinet/cl-tokyo-cabinet.asd
cl-tokyo-cabinet
(system).
cl-tokyo-cabinet/cl-tokyo-cabinet/package.lisp
cl-tokyo-cabinet
(module).
cl-tokyo-cabinet/cl-tokyo-cabinet/tokyo-cabinet-ffi.lisp
package.lisp
(file).
cl-tokyo-cabinet
(module).
+bdbcpafter+
(constant).
+bdbcpbefore+
(constant).
+bdbcpcurrent+
(constant).
+tceclose+
(constant).
+tceinvalid+
(constant).
+tcekeep+
(constant).
+tcelock+
(constant).
+tcemeta+
(constant).
+tcemisc+
(constant).
+tcemkdir+
(constant).
+tcemmap+
(constant).
+tcenofile+
(constant).
+tcenoperm+
(constant).
+tcenorec+
(constant).
+tceopen+
(constant).
+tceread+
(constant).
+tcerename+
(constant).
+tcerhead+
(constant).
+tcermdir+
(constant).
+tceseek+
(constant).
+tcestat+
(constant).
+tcesuccess+
(constant).
+tcesync+
(constant).
+tcethread+
(constant).
+tcetrunc+
(constant).
+tceunlink+
(constant).
+tcewrite+
(constant).
tcbdbclose
(function).
tcbdbcopy
(function).
tcbdbcurdel
(function).
tcbdbcurfirst
(function).
tcbdbcurjump
(function).
tcbdbcurjump2
(function).
tcbdbcurkey
(function).
tcbdbcurkey2
(function).
tcbdbcurkey3
(function).
tcbdbcurlast
(function).
tcbdbcurnew
(function).
tcbdbcurnext
(function).
tcbdbcurout
(function).
tcbdbcurprev
(function).
tcbdbcurput
(function).
tcbdbcurput2
(function).
tcbdbcurrec
(function).
tcbdbcurval
(function).
tcbdbcurval2
(function).
tcbdbcurval3
(function).
tcbdbdel
(function).
tcbdbecode
(function).
tcbdberrmsg
(function).
tcbdbfsiz
(function).
tcbdbget
(function).
tcbdbget2
(function).
tcbdbnew
(function).
tcbdbopen
(function).
tcbdboptimize
(function).
tcbdbout
(function).
tcbdbout2
(function).
tcbdbout3
(function).
tcbdbpath
(function).
tcbdbput
(function).
tcbdbput2
(function).
tcbdbputcat
(function).
tcbdbputcat2
(function).
tcbdbputdup
(function).
tcbdbputdup2
(function).
tcbdbputdup3
(function).
tcbdbputkeep
(function).
tcbdbputkeep2
(function).
tcbdbrnum
(function).
tcbdbsetcache
(function).
tcbdbsetcmpfunc
(function).
tcbdbsetxmsiz
(function).
tcbdbsync
(function).
tcbdbtranabort
(function).
tcbdbtranbegin
(function).
tcbdbtrancommit
(function).
tcbdbtune
(function).
tcbdbvanish
(function).
tcbdbvnum
(function).
tcbdbvnum2
(function).
tcbdbvsiz
(function).
tcbdbvsiz2
(function).
tcfdbadddouble
(function).
tcfdbaddint
(function).
tcfdbclose
(function).
tcfdbcopy
(function).
tcfdbdel
(function).
tcfdbecode
(function).
tcfdberrmsg
(function).
tcfdbfsiz
(function).
tcfdbget
(function).
tcfdbget2
(function).
tcfdbget3
(function).
tcfdbiterinit
(function).
tcfdbiternext
(function).
tcfdbiternext2
(function).
tcfdbiternext3
(function).
tcfdbnew
(function).
tcfdbopen
(function).
tcfdboptimize
(function).
tcfdbout
(function).
tcfdbout2
(function).
tcfdbout3
(function).
tcfdbpath
(function).
tcfdbput
(function).
tcfdbput2
(function).
tcfdbput3
(function).
tcfdbputcat
(function).
tcfdbputcat2
(function).
tcfdbputcat3
(function).
tcfdbputkeep
(function).
tcfdbputkeep2
(function).
tcfdbputkeep3
(function).
tcfdbrange
(function).
tcfdbrnum
(function).
tcfdbsync
(function).
tcfdbtranabort
(function).
tcfdbtranbegin
(function).
tcfdbtrancommit
(function).
tcfdbtune
(function).
tcfdbvanish
(function).
tcfdbvsiz
(function).
tcfdbvsiz2
(function).
tcfdbvsiz3
(function).
tchdbclose
(function).
tchdbcopy
(function).
tchdbdel
(function).
tchdbecode
(function).
tchdberrmsg
(function).
tchdbfsiz
(function).
tchdbget
(function).
tchdbget2
(function).
tchdbiterinit
(function).
tchdbiternext
(function).
tchdbiternext2
(function).
tchdbiternext3
(function).
tchdbnew
(function).
tchdbopen
(function).
tchdboptimize
(function).
tchdbout
(function).
tchdbout2
(function).
tchdbpath
(function).
tchdbput
(function).
tchdbput2
(function).
tchdbputasync
(function).
tchdbputasync2
(function).
tchdbputcat
(function).
tchdbputcat2
(function).
tchdbputkeep
(function).
tchdbputkeep2
(function).
tchdbrnum
(function).
tchdbsetcache
(function).
tchdbsetxmsiz
(function).
tchdbsync
(function).
tchdbtranabort
(function).
tchdbtranbegin
(function).
tchdbtrancommit
(function).
tchdbtune
(function).
tchdbvanish
(function).
tchdbvsiz
(function).
tchdbvsiz2
(function).
cl-tokyo-cabinet/cl-tokyo-cabinet/tokyo-cabinet.lisp
package.lisp
(file).
tokyo-cabinet-ffi.lisp
(file).
cl-tokyo-cabinet
(module).
dbm-begin
(generic function).
dbm-cache
(generic function).
dbm-close
(generic function).
dbm-commit
(generic function).
dbm-delete
(generic function).
dbm-error
(condition).
dbm-file-size
(generic function).
dbm-get
(generic function).
dbm-num-records
(generic function).
dbm-open
(generic function).
dbm-optimize
(generic function).
dbm-put
(generic function).
dbm-rem
(generic function).
dbm-vanish
(generic function).
dbm-xmsize
(generic function).
iter-close
(generic function).
iter-first
(generic function).
iter-get
(generic function).
iter-jump
(generic function).
iter-key
(generic function).
iter-last
(generic function).
iter-next
(generic function).
iter-open
(generic function).
iter-prev
(generic function).
iter-put
(generic function).
iter-rem
(generic function).
set-comparator
(generic function).
tc-bdb
(class).
tc-fdb
(class).
tc-hdb
(class).
with-database
(macro).
with-iterator
(macro).
with-transaction
(macro).
*in-transaction-p*
(special variable).
bdb-iterator
(class).
check-open-mode
(function).
copy-foreign-value
(function).
current-id-of
(reader method).
(setf current-id-of)
(writer method).
dbm-abort
(generic function).
dbm-file-namestring
(generic function).
error-code-of
(reader method).
error-msg-of
(reader method).
fdb-iterator
(class).
get-int32->octets
(function).
get-int32->string
(function).
get-octets->octets
(function).
get-octets->string
(function).
get-string->octets
(function).
get-string->string
(function).
hdb-iterator
(class).
int32
(type).
int64
(type).
key-size-of
(reader method).
(setf key-size-of)
(writer method).
maybe-raise-error
(generic function).
next-key-of
(reader method).
(setf next-key-of)
(writer method).
octet
(type).
ptr-of
(reader method).
ptr-of
(reader method).
(setf ptr-of)
(writer method).
(setf ptr-of)
(writer method).
put-int32->octets
(function).
put-int32->string
(function).
put-octets->octets
(function).
put-octets->string
(function).
put-string->octets
(function).
put-string->string
(function).
raise-error
(generic function).
rem-int32->value
(function).
rem-octets->value
(function).
rem-string->duplicates
(function).
rem-string->value
(function).
tc-dbm
(class).
tc-iterator
(class).
text
(reader method).
with-string-value
(macro).
cl-tokyo-cabinet/cl-tokyo-cabinet/tokyo-cabinet-bdb.lisp
package.lisp
(file).
tokyo-cabinet-ffi.lisp
(file).
tokyo-cabinet.lisp
(file).
cl-tokyo-cabinet
(module).
dbm-begin
(method).
dbm-cache
(method).
dbm-close
(method).
dbm-commit
(method).
dbm-delete
(method).
dbm-file-size
(method).
dbm-get
(method).
dbm-get
(method).
dbm-get
(method).
dbm-num-records
(method).
dbm-open
(method).
dbm-optimize
(method).
dbm-put
(method).
dbm-put
(method).
dbm-put
(method).
dbm-put
(method).
dbm-put
(method).
dbm-put
(method).
dbm-rem
(method).
dbm-rem
(method).
dbm-rem
(method).
dbm-vanish
(method).
dbm-xmsize
(method).
initialize-instance
(method).
iter-close
(method).
iter-first
(method).
iter-get
(method).
iter-jump
(method).
iter-jump
(method).
iter-jump
(method).
iter-key
(method).
iter-last
(method).
iter-next
(method).
iter-open
(method).
iter-prev
(method).
iter-put
(method).
iter-put
(method).
iter-rem
(method).
set-comparator
(method).
%bdb-iter-mode
(function).
%bdb-put-fn
(function).
%bdb-str-put-fn
(function).
%builtin-comparator
(function).
dbm-abort
(method).
dbm-file-namestring
(method).
maybe-raise-error
(method).
raise-error
(method).
cl-tokyo-cabinet/cl-tokyo-cabinet/tokyo-cabinet-hdb.lisp
package.lisp
(file).
tokyo-cabinet-ffi.lisp
(file).
tokyo-cabinet.lisp
(file).
cl-tokyo-cabinet
(module).
dbm-begin
(method).
dbm-cache
(method).
dbm-close
(method).
dbm-commit
(method).
dbm-delete
(method).
dbm-file-size
(method).
dbm-get
(method).
dbm-get
(method).
dbm-get
(method).
dbm-num-records
(method).
dbm-open
(method).
dbm-optimize
(method).
dbm-put
(method).
dbm-put
(method).
dbm-put
(method).
dbm-put
(method).
dbm-put
(method).
dbm-put
(method).
dbm-rem
(method).
dbm-rem
(method).
dbm-vanish
(method).
dbm-xmsize
(method).
initialize-instance
(method).
iter-close
(method).
iter-first
(method).
iter-get
(method).
iter-key
(method).
iter-next
(method).
iter-open
(method).
%hdb-put-fn
(function).
%hdb-str-put-fn
(function).
dbm-abort
(method).
dbm-file-namestring
(method).
maybe-raise-error
(method).
raise-error
(method).
cl-tokyo-cabinet/cl-tokyo-cabinet/tokyo-cabinet-fdb.lisp
package.lisp
(file).
tokyo-cabinet-ffi.lisp
(file).
tokyo-cabinet.lisp
(file).
cl-tokyo-cabinet
(module).
dbm-begin
(method).
dbm-close
(method).
dbm-commit
(method).
dbm-delete
(method).
dbm-file-size
(method).
dbm-get
(method).
dbm-get
(method).
dbm-get
(method).
dbm-num-records
(method).
dbm-open
(method).
dbm-optimize
(method).
dbm-put
(method).
dbm-put
(method).
dbm-put
(method).
dbm-put
(method).
dbm-put
(method).
dbm-put
(method).
dbm-rem
(method).
dbm-rem
(method).
dbm-vanish
(method).
initialize-instance
(method).
iter-close
(method).
iter-first
(method).
iter-get
(method).
iter-key
(method).
iter-next
(method).
iter-open
(method).
%fdb-put-fn
(function).
%fdb-str-put-fn
(function).
dbm-abort
(method).
dbm-file-namestring
(method).
maybe-raise-error
(method).
raise-error
(method).
Packages are listed by definition order.
tokyo-cabinet
A Lisp-style abstract interface to Tokyo
Cabinet. The original C function names are not preserved (see
the :tokyo-cabinet-ffi package for functions that do preserve the
nomenclature).
tc
cffi
.
common-lisp
.
tokyo-cabinet-ffi
.
dbm-begin
(generic function).
dbm-cache
(generic function).
dbm-close
(generic function).
dbm-commit
(generic function).
dbm-delete
(generic function).
dbm-error
(condition).
dbm-file-size
(generic function).
dbm-get
(generic function).
dbm-num-records
(generic function).
dbm-open
(generic function).
dbm-optimize
(generic function).
dbm-put
(generic function).
dbm-rem
(generic function).
dbm-vanish
(generic function).
dbm-xmsize
(generic function).
iter-close
(generic function).
iter-first
(generic function).
iter-get
(generic function).
iter-jump
(generic function).
iter-key
(generic function).
iter-last
(generic function).
iter-next
(generic function).
iter-open
(generic function).
iter-prev
(generic function).
iter-put
(generic function).
iter-rem
(generic function).
set-comparator
(generic function).
tc-bdb
(class).
tc-fdb
(class).
tc-hdb
(class).
with-database
(macro).
with-iterator
(macro).
with-transaction
(macro).
%bdb-iter-mode
(function).
%bdb-put-fn
(function).
%bdb-str-put-fn
(function).
%builtin-comparator
(function).
%fdb-put-fn
(function).
%fdb-str-put-fn
(function).
%hdb-put-fn
(function).
%hdb-str-put-fn
(function).
*in-transaction-p*
(special variable).
bdb-iterator
(class).
check-open-mode
(function).
copy-foreign-value
(function).
current-id-of
(generic reader).
(setf current-id-of)
(generic writer).
dbm-abort
(generic function).
dbm-file-namestring
(generic function).
error-code-of
(generic reader).
error-msg-of
(generic reader).
fdb-iterator
(class).
get-int32->octets
(function).
get-int32->string
(function).
get-octets->octets
(function).
get-octets->string
(function).
get-string->octets
(function).
get-string->string
(function).
hdb-iterator
(class).
int32
(type).
int64
(type).
key-size-of
(generic reader).
(setf key-size-of)
(generic writer).
maybe-raise-error
(generic function).
next-key-of
(generic reader).
(setf next-key-of)
(generic writer).
octet
(type).
ptr-of
(generic reader).
(setf ptr-of)
(generic writer).
put-int32->octets
(function).
put-int32->string
(function).
put-octets->octets
(function).
put-octets->string
(function).
put-string->octets
(function).
put-string->string
(function).
raise-error
(generic function).
rem-int32->value
(function).
rem-octets->value
(function).
rem-string->duplicates
(function).
rem-string->value
(function).
tc-dbm
(class).
tc-iterator
(class).
text
(generic reader).
with-string-value
(macro).
tokyo-cabinet-ffi
CFFI interface to Tokyo Cabinet functions. The original C function names are preserved.
cffi
.
common-lisp
.
+bdbcpafter+
(constant).
+bdbcpbefore+
(constant).
+bdbcpcurrent+
(constant).
+tceclose+
(constant).
+tceinvalid+
(constant).
+tcekeep+
(constant).
+tcelock+
(constant).
+tcemeta+
(constant).
+tcemisc+
(constant).
+tcemkdir+
(constant).
+tcemmap+
(constant).
+tcenofile+
(constant).
+tcenoperm+
(constant).
+tcenorec+
(constant).
+tceopen+
(constant).
+tceread+
(constant).
+tcerename+
(constant).
+tcerhead+
(constant).
+tcermdir+
(constant).
+tceseek+
(constant).
+tcestat+
(constant).
+tcesuccess+
(constant).
+tcesync+
(constant).
+tcethread+
(constant).
+tcetrunc+
(constant).
+tceunlink+
(constant).
+tcewrite+
(constant).
tcbdbclose
(function).
tcbdbcopy
(function).
tcbdbcurdel
(function).
tcbdbcurfirst
(function).
tcbdbcurjump
(function).
tcbdbcurjump2
(function).
tcbdbcurkey
(function).
tcbdbcurkey2
(function).
tcbdbcurkey3
(function).
tcbdbcurlast
(function).
tcbdbcurnew
(function).
tcbdbcurnext
(function).
tcbdbcurout
(function).
tcbdbcurprev
(function).
tcbdbcurput
(function).
tcbdbcurput2
(function).
tcbdbcurrec
(function).
tcbdbcurval
(function).
tcbdbcurval2
(function).
tcbdbcurval3
(function).
tcbdbdel
(function).
tcbdbecode
(function).
tcbdberrmsg
(function).
tcbdbfsiz
(function).
tcbdbget
(function).
tcbdbget2
(function).
tcbdbnew
(function).
tcbdbopen
(function).
tcbdboptimize
(function).
tcbdbout
(function).
tcbdbout2
(function).
tcbdbout3
(function).
tcbdbpath
(function).
tcbdbput
(function).
tcbdbput2
(function).
tcbdbputcat
(function).
tcbdbputcat2
(function).
tcbdbputdup
(function).
tcbdbputdup2
(function).
tcbdbputdup3
(function).
tcbdbputkeep
(function).
tcbdbputkeep2
(function).
tcbdbrnum
(function).
tcbdbsetcache
(function).
tcbdbsetcmpfunc
(function).
tcbdbsetxmsiz
(function).
tcbdbsync
(function).
tcbdbtranabort
(function).
tcbdbtranbegin
(function).
tcbdbtrancommit
(function).
tcbdbtune
(function).
tcbdbvanish
(function).
tcbdbvnum
(function).
tcbdbvnum2
(function).
tcbdbvsiz
(function).
tcbdbvsiz2
(function).
tcfdbadddouble
(function).
tcfdbaddint
(function).
tcfdbclose
(function).
tcfdbcopy
(function).
tcfdbdel
(function).
tcfdbecode
(function).
tcfdberrmsg
(function).
tcfdbfsiz
(function).
tcfdbget
(function).
tcfdbget2
(function).
tcfdbget3
(function).
tcfdbiterinit
(function).
tcfdbiternext
(function).
tcfdbiternext2
(function).
tcfdbiternext3
(function).
tcfdbnew
(function).
tcfdbopen
(function).
tcfdboptimize
(function).
tcfdbout
(function).
tcfdbout2
(function).
tcfdbout3
(function).
tcfdbpath
(function).
tcfdbput
(function).
tcfdbput2
(function).
tcfdbput3
(function).
tcfdbputcat
(function).
tcfdbputcat2
(function).
tcfdbputcat3
(function).
tcfdbputkeep
(function).
tcfdbputkeep2
(function).
tcfdbputkeep3
(function).
tcfdbrange
(function).
tcfdbrnum
(function).
tcfdbsync
(function).
tcfdbtranabort
(function).
tcfdbtranbegin
(function).
tcfdbtrancommit
(function).
tcfdbtune
(function).
tcfdbvanish
(function).
tcfdbvsiz
(function).
tcfdbvsiz2
(function).
tcfdbvsiz3
(function).
tchdbclose
(function).
tchdbcopy
(function).
tchdbdel
(function).
tchdbecode
(function).
tchdberrmsg
(function).
tchdbfsiz
(function).
tchdbget
(function).
tchdbget2
(function).
tchdbiterinit
(function).
tchdbiternext
(function).
tchdbiternext2
(function).
tchdbiternext3
(function).
tchdbnew
(function).
tchdbopen
(function).
tchdboptimize
(function).
tchdbout
(function).
tchdbout2
(function).
tchdbpath
(function).
tchdbput
(function).
tchdbput2
(function).
tchdbputasync
(function).
tchdbputasync2
(function).
tchdbputcat
(function).
tchdbputcat2
(function).
tchdbputkeep
(function).
tchdbputkeep2
(function).
tchdbrnum
(function).
tchdbsetcache
(function).
tchdbsetxmsiz
(function).
tchdbsync
(function).
tchdbtranabort
(function).
tchdbtranbegin
(function).
tchdbtrancommit
(function).
tchdbtune
(function).
tchdbvanish
(function).
tchdbvsiz
(function).
tchdbvsiz2
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Evaluates BODY with VAR bound to an open database.
Arguments:
- var (symbol): The binding for the new database object.
- filespec (filespec): The database file.
- type (symbol): A symbol that names a TC database class.
Rest:
- mode (symbols): :READ :WRITE :CREATE :TRUNCATE
:NOLOCK :NOBLOCK and :TSYNC
See the TC documentation for the meaning of the mode arguments.
Evaluates BODY on with VAR bound to a new, open iterator on DB.
Evaluates BODY in the context of a transaction on DB. If no transaction is in progress, a new one is started. If a transaction is already in progress, BODY is evaluated in its context. If an error occurs, the transaction will rollback, otherwise it will commit.
Begins a transaction with DB.
Sets the caching parameters of DB. These are
described in the TC documentation.
The keyword arguments for B+ tree databases are:
- :LEAF : The number of leaf nodes to cache. Defaults to 1024.
- :NON-LEAF : The number of non-leaf nodes to cache. Defaults to 512.
The keyword arguments for hash databases are:
- :RECORDS : The number of records to cache. Defaults to 0.
Closes an open TC database.
Arguments:
- db (object): A TC dbm object.
Returns:
- T on success, or NIL otherwise.
Commits a transaction with DB.
Deletes a TC database. If open, implicitly closes
it first.
Arguments:
- db (object): A TC dbm object.
Returns:
- NIL .
Returns the size of the DB file in bytes.
Returns the value under KEY in DB. Type may be one
of :STRING or :OCTETS , depending on how the value is to be
treated. :STRING indicates that the value should be converted to a
Lisp string, while :OCTETS indicates that the byte vector should be
returned.
Returns the number of records in DB.
Opens a new, or existing TC database.
Arguments:
- db (object): A TC dbm object.
- filespec (string): A pathname designator for the database file.
Rest:
- mode (list symbol): A list of mode keywords used when opening the
file. The modes are :READ :WRITE :CREATE :TRUNCATE :NOBLOCK :NOLOCK
and :TSYNC which correspond to those described in the TC
specification.
Returns:
- The TC dbm object, now open.
Sets the DB optimization parameters on an open
database. These are described in the TC documentation.
The keyword arguments for B+ tree databases are:
- :LEAF (fixnum) : Sets the number of leaf nodes.
- :NON-LEAF (fixnum) : Sets the number of non-leaf nodes.
- :BUCKET-SIZE (fixnum) : Sets the bucket
- :REC-ALIGN (fixnum) : A power of 2 indicating record alignment.
- :FREE-POOL (fixnum): A power of 2 indicating the size of the free
record pool.
- :OPTS (list symbol): A list of keywords indicating optional database
parameters.
The keyword arguments for hash databases are:
:BUCKET-SIZE :REC-ALIGN :FREE-POOL and :OPTS , as above.
In both cases the :OPTS value is a list of one or more of
- :LARGE : Use a 64-bit bucket array to allow datbases > 2Gb.
- :DEFLATE : Use deflate compression.
- :BZIP : Use bzip compression.
- :TCBS : Use tcbs compression.
- :DEFAULTS : Use the current settings.
For example:
;;; (dbm-optimize db :leaf 512 :non-leaf 256 :bucket-size 100000000 ;;; :rec-align 4 :free-pool 10 :opts ’(:large :deflate))
tc-hdb
) &key bucket-size rec-align free-pool options &allow-other-keys) ¶Inserts KEY and VALUE into DB. MODE varies with DB
class.
Arguments:
- db (object): A TC database object.
- key (object): A key under which to insert.
- value (object): A value to insert under key.
Key:
- :mode (symbol): A symbol designating one of the TC insertion modes:
replace, keep, concat, duplicate, async etc.
Valid modes for B+ tree databases are:
- :REPLACE : If a record with the same key exists in the database, it
is overwritten.
- :KEEP : If a record with the same key exists in the database, this
function has no effect.
- :CONCAT : Concatenates a value at the end of the existing record in
the database. If there is no corresponding record, a new record is
created.
- :DUPLICATE : Adds a record to the database, allowing duplication of
keys. If a record with the same key exists in the database, the new
record is placed after the existing one.
Valid modes for hash databases are:
:REPLACE , :KEEP and :CONCAT , as above. Additionally:
- :ASYNC : Collects inserts into a buffer and then inserts them asynchronously, in one operation.
Removes the value under KEY in DB. If REMOVE-DUPS
is T, duplicate values will be removed from a B+ tree database.
Removes all records from DB.
Sets the DB extra mapped memory to SIZE bytes.
Closes ITERATOR. Only effective for B+ tree databases.
fdb-iterator
)) ¶hdb-iterator
)) ¶bdb-iterator
)) ¶Moves ITERATOR to the first record and returns T,
or NIL if the database is empty. Only effective for B+ tree
databases.
fdb-iterator
)) ¶hdb-iterator
)) ¶bdb-iterator
)) ¶Returns the current value at ITERATOR. Type may be
one of :STRING or :OCTETS , depending on how the value is to be
treated. :STRING indicates that the value should be converted to a
Lisp string, while :OCTETS indicates that the byte vector should be
returned.
fdb-iterator
) &optional type) ¶hdb-iterator
) &optional type) ¶bdb-iterator
) &optional type) ¶Moves ITERATOR to the record at KEY. Only effective for B+ tree databases.
bdb-iterator
) (key vector
)) ¶bdb-iterator
) (key integer
)) ¶bdb-iterator
) (key string
)) ¶Returns current key at the ITERATOR position. Type
may be one of :STRING or :OCTETS , depending on how the value is to be
treated. :STRING indicates that the value should be converted to a
Lisp string, while :OCTETS indicates that the byte vector should be
returned.
fdb-iterator
) &optional type) ¶hdb-iterator
) &optional type) ¶bdb-iterator
) &optional type) ¶Moves ITERATOR to the last record and returns T, or
NIL if the database is empty. Only effective for B+ tree databases.
bdb-iterator
)) ¶Moves ITERATOR to the next record and returns T, or NIL if already at the last record.
fdb-iterator
)) ¶hdb-iterator
)) ¶bdb-iterator
)) ¶Opens an iterator on DB.
Arguments:
- db (object): A TC dbm object.
Returns:
- A TC iterator object.
Moves ITERATOR to the previous record and returns
T, or NIL if already at the first record. Only effective for B+ tree
databases.
bdb-iterator
)) ¶Inserts VALUE around ITERATOR. Mode may be one
of :CURRENT , :BEFORE or :AFTER . Only effective for B+ tree
databases.
bdb-iterator
) (value vector
) &key mode) ¶bdb-iterator
) (value string
) &key mode) ¶Removed the record at the ITERATOR position and advances ITERATOR, if possible. Only effective for B+ tree databases.
bdb-iterator
)) ¶Sets the DB comparator function to that given by symbol FN.
error
.
The error code provided by TC.
(quote nil)
:error-code
This slot is read-only.
The error message provided by TC.
(quote nil)
:error-msg
This slot is read-only.
A TC B+ tree database.
dbm-abort
.
dbm-begin
.
dbm-cache
.
dbm-close
.
dbm-commit
.
dbm-delete
.
dbm-file-namestring
.
dbm-file-size
.
dbm-get
.
dbm-get
.
dbm-get
.
dbm-num-records
.
dbm-open
.
dbm-optimize
.
dbm-put
.
dbm-put
.
dbm-put
.
dbm-put
.
dbm-put
.
dbm-put
.
dbm-rem
.
dbm-rem
.
dbm-rem
.
dbm-vanish
.
dbm-xmsize
.
initialize-instance
.
iter-open
.
maybe-raise-error
.
raise-error
.
set-comparator
.
A TC fixed-length database.
dbm-abort
.
dbm-begin
.
dbm-close
.
dbm-commit
.
dbm-delete
.
dbm-file-namestring
.
dbm-file-size
.
dbm-get
.
dbm-get
.
dbm-get
.
dbm-num-records
.
dbm-open
.
dbm-optimize
.
dbm-put
.
dbm-put
.
dbm-put
.
dbm-put
.
dbm-put
.
dbm-put
.
dbm-rem
.
dbm-rem
.
dbm-vanish
.
initialize-instance
.
iter-open
.
maybe-raise-error
.
raise-error
.
A TC hash database.
dbm-abort
.
dbm-begin
.
dbm-cache
.
dbm-close
.
dbm-commit
.
dbm-delete
.
dbm-file-namestring
.
dbm-file-size
.
dbm-get
.
dbm-get
.
dbm-get
.
dbm-num-records
.
dbm-open
.
dbm-optimize
.
dbm-put
.
dbm-put
.
dbm-put
.
dbm-put
.
dbm-put
.
dbm-put
.
dbm-rem
.
dbm-rem
.
dbm-vanish
.
dbm-xmsize
.
initialize-instance
.
iter-open
.
maybe-raise-error
.
raise-error
.
Bound when in a transaction.
Helper macro for managing string values.
Checks the list MODE for valid and consistent database opening arguments.
Returns a value from DB under KEY using FN where the key is a 32-bit integer and the value an octet vector.
Returns a value from DB under KEY using FN where the key is a 32-but integer and the value a string.
Returns a value from DB under KEY using FN where the key and value are octet vectors.
Returns a value from DB under KEY using FN where the key is a vector of octets and value is a string.
Returns a value from DB under KEY using FN where the key is a string and the value an octet vector. Note that for the key we allocate a foreign string that is not null-terminated.
Returns a value from DB under KEY using FN where the key and value are strings.
Inserts VALUE into DB under KEY using FN where the key is a 32-bit integer and the value is an octet vector.
Inserts VALUE into DB under KEY using FN where the key is a 32-bit integer and the value is a string.
Inserts VALUE into DB under KEY using FN where the key and value are octet vectors.
Inserts VALUE into DB under KEY using FN where the key is an octet vector and the value is a string.
Inserts VALUE into DB under KEY using FN where the key is a string and the value an octet vector. Note that for the key we allocate a foreign string that is not null-terminated.
Inserts VALUE into DB under KEY using FN where the key and value are strings.
Removes value from DB under KEY using FN where the key is a 32-bit integer.
Removes value from DB under KEY using FN where the key is a vector of octets.
Removes all values from DB under KEY using FN where the key is a string.
Removes value from DB under KEY using FN where the key is a string.
fdb-iterator
)) ¶automatically generated reader method
fdb-iterator
)) ¶automatically generated writer method
Aborts a transaction with DB.
Returns the name of the DB file.
hdb-iterator
)) ¶automatically generated reader method
hdb-iterator
)) ¶automatically generated writer method
Checks the DB handle for any error reported by TC
and raises a {define-condition dbm-error} if one has occurred by
calling {defun raise-error} .
hdb-iterator
)) ¶automatically generated reader method
hdb-iterator
)) ¶automatically generated writer method
tc-iterator
)) ¶tc-iterator
)) ¶A TC pointer.
ptr
.
Raises a {define-condition dbm-error} with
MESSAGE. MESSAGE may be a format template, in which case the rest of
the arguments are taken to be format arguments for that template. The
error code and TC error message are automatically obtained from the DB
handle.
A B+ tree database cursor.
A fixed-length database iterator.
A hash database iterator.
A TC database.
A pointer to a TC native database object.
:ptr
A TC database iterator, the superclass of both B+ tree cursors, hash and fixed-length iterators.
A TC pointer.
:ptr
Jump to: | %
(
C D E F G I K M N P R S T W |
---|
Jump to: | %
(
C D E F G I K M N P R S T W |
---|
Jump to: | *
+
C E K N P S T |
---|
Jump to: | *
+
C E K N P S T |
---|
Jump to: | B C D F H I M O P S T |
---|
Jump to: | B C D F H I M O P S T |
---|