gdbm: add gdbm-info
parent
cab257bbea
commit
2992a37fe5
|
@ -28,6 +28,10 @@ HELP: <gdbm>
|
|||
{ $values { "gdbm" gdbm } }
|
||||
{ $description "Creates database configuration object with all slots set to their default values. See " { $link gdbm } " for complete slots description." } ;
|
||||
|
||||
HELP: gdbm-info
|
||||
{ $values { "str" string } }
|
||||
{ $description "Returns version number and build date." } ;
|
||||
|
||||
HELP: gdbm-delete
|
||||
{ $values { "key" object } }
|
||||
{ $description "Removes the keyed item from the database." } ;
|
||||
|
|
|
@ -67,6 +67,8 @@ DESTRUCTOR: gdbm-close
|
|||
PRIVATE>
|
||||
|
||||
|
||||
: gdbm-info ( -- str ) gdbm_version ;
|
||||
|
||||
: gdbm-error-message ( error -- msg ) gdbm_strerror ;
|
||||
|
||||
: gdbm-replace ( key content -- ) GDBM_REPLACE gdbm-store ;
|
||||
|
|
Loading…
Reference in New Issue