LMDB
Exported
Base.Iterators.drop
— MethodEmpty or delete+close a database.
If parameter delete
is false
DB will be emptied, otherwise DB will be deleted from the environment and DB handle will be closed
Base.close
— MethodClose a cursor
Base.close
— MethodClose a database handle
Base.close
— MethodClose the environment and release the memory map
Base.count
— MethodReturn count of duplicates for current key
Base.delete!
— FunctionDelete items from a database
Base.delete!
— MethodDelete current key/data pair to which the cursor refers
Base.get
— MethodRetrieve by cursor.
This function retrieves key/data pairs from the database.
Base.get
— MethodGet items from a database
Base.getindex
— MethodGet environment flags and parameters
getindex
accepts folowing parameters:
env
db environment objectoption
symbol which indicates parameter. Currently supported parameters:- Flags
- Readers
- KeySize
Note: Consult LMDB documentation for particual values of environment parameters and flags.
Base.isopen
— MethodCheck if cursor is open
Base.isopen
— MethodCheck if database is open
Base.isopen
— MethodCheck if environment is open
Base.isopen
— MethodCheck if transaction is open.
Base.keys
— MethodReturn iterator over keys of uniform, specified type
Base.open
— FunctionWrapper of DBI open
for do
construct
Base.open
— FunctionOpen a database in the environment
Base.open
— MethodOpen an environment handle
open
function accepts folowing parameters:
env
db environment objectpath
directory in which the database files resideflags
defines special options for the environmentmode
UNIX permissions to set on created files
Note: A database directory must exist and be writable.
Base.open
— MethodWrapper of Cursor open
for do
construct
Base.open
— MethodCreate a cursor
Base.put!
— MethodStore by cursor.
This function stores key/data pairs into the database. The cursor is positioned at the new item, or on failure usually near it.
Base.put!
— MethodStore items into a database
Base.reset
— MethodReset a read-only transaction
Abort the transaction like abort
, but keep the transaction handle.
Base.setindex!
— MethodSet environment flags and parameters
setindex!
accepts folowing parameters:
env
db environment objectoption
symbol which indicates parameter. Currently supported parameters:- Flags
- Readers
- MapSize
- DBs
value
parameter value
Note: Consult LMDB documentation for particual values of environment parameters and flags.
LMDB.abort
— MethodAbandon all the operations of the transaction instead of saving them
The transaction and its cursors must not be used after, because its handle is freed.
LMDB.commit
— MethodCommit all the operations of a transaction into the database
The transaction and its cursors must not be used after, because its handle is freed.
LMDB.create
— MethodWrapper of create
for do
construct
LMDB.create
— MethodCreate an LMDB environment handle
LMDB.database
— MethodReturn the cursor's database
LMDB.environment
— MethodWrapper of open
for do
construct
LMDB.info
— MethodReturn information about the LMDB environment.
LMDB.isflagset
— MethodCheck if binary flag is set in provided value
LMDB.path
— MethodReturn the path that was used in open
LMDB.renew
— MethodRenew a cursor
LMDB.renew
— MethodRenew a read-only transaction
This acquires a new reader lock for a transaction handle that had been released by reset
. It must be called before a reset transaction may be used again.
LMDB.set!
— MethodSet environment flags
LMDB.start
— MethodCreate a transaction for use with the environment
start
function creates a new transaction and returns Transaction
object. It allows to set transaction flags with flags
option.
LMDB.sync
— FunctionFlush the data buffers to disk
LMDB.transaction
— MethodReturn the cursor's transaction
LMDB.unset!
— MethodUnset environment flags
LMDB.Cursor
— TypeA handle to a cursor structure for navigating through a database.
LMDB.DBI
— TypeA handle for an individual database in the DB environment.
LMDB.Environment
— TypeA DB environment supports multiple databases, all residing in the same shared-memory map.
LMDB.LMDBError
— TypeLMDB exception type
LMDB.Transaction
— TypeA database transaction. Every operation requires a transaction handle. All database operations require a transaction handle. Transactions may be read-only or read-write.
Not Exported
Base.iterate
— MethodIterate over database
LMDB.errormsg
— MethodReturn a string describing a given error code
Function returns description of the error as a string. It accepts following arguments:
err::Int32
: An error code.
LMDB.flags
— MethodRetrieve the DB flags for a database handle
LMDB.version
— MethodReturn the LMDB library version and version information
Function returns tuple (VersionNumber, String)
that contains a library version and a library version string.
LMDB.LMDBIterator
— TypeType to implement the Iterator interface