LMDB

Exported

Base.Iterators.dropMethod

Empty 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

source
Base.getMethod

Retrieve by cursor.

This function retrieves key/data pairs from the database.

source
Base.getindexMethod

Get environment flags and parameters

getindex accepts folowing parameters:

  • env db environment object
  • option symbol which indicates parameter. Currently supported parameters:
    • Flags
    • Readers
    • KeySize

Note: Consult LMDB documentation for particual values of environment parameters and flags.

source
Base.keysMethod

Return iterator over keys of uniform, specified type

source
Base.openMethod

Open an environment handle

open function accepts folowing parameters:

  • env db environment object
  • path directory in which the database files reside
  • flags defines special options for the environment
  • mode UNIX permissions to set on created files

Note: A database directory must exist and be writable.

source
Base.put!Method

Store 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.

source
Base.resetMethod

Reset a read-only transaction

Abort the transaction like abort, but keep the transaction handle.

source
Base.setindex!Method

Set environment flags and parameters

setindex! accepts folowing parameters:

  • env db environment object
  • option 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.

source
LMDB.abortMethod

Abandon 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.

source
LMDB.commitMethod

Commit all the operations of a transaction into the database

The transaction and its cursors must not be used after, because its handle is freed.

source
LMDB.renewMethod

Renew 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.

source
LMDB.startMethod

Create 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.

source
LMDB.CursorType

A handle to a cursor structure for navigating through a database.

source
LMDB.DBIType

A handle for an individual database in the DB environment.

source
LMDB.EnvironmentType

A DB environment supports multiple databases, all residing in the same shared-memory map.

source
LMDB.TransactionType

A database transaction. Every operation requires a transaction handle. All database operations require a transaction handle. Transactions may be read-only or read-write.

source

Not Exported

LMDB.errormsgMethod

Return 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.
source
LMDB.versionMethod

Return the LMDB library version and version information

Function returns tuple (VersionNumber, String) that contains a library version and a library version string.

source