Handbook
Glossary
create-rocksdb ( path -- ptr )
Vocabulary
rocksdb
.
lib
Inputs
path
an
object
Outputs
ptr
an
object
Definition
USING:
alien.c-types
alien.data
destructors
kernel
rocksdb.ffi
;
IN:
rocksdb.lib
:
create-rocksdb
( path -- ptr )
[
rocksdb_options_create
[
<rocksdb-options>
&dispose
drop
]
keep
set-create-if-missing
]
dip
f
void*
<ref>
[
rocksdb_open
]
keep
rocksdb-ptr-error
;