12345678910111213141516171819202122232425262728293031323334353637 |
- /** @file store_mdb.h
- *
- * @brief LMDB graph store backend.
- *
- * This module stores triples in a LMDB embedded store, organized
- * into named graphs. The store is optimized and indexed for fast lookup of any
- * number of bound terms.
- *
- * The store must be first initialized once, to create the environment files
- * and folders as well as the internal databases, then it must be opened once
- * per session. Within that session multiple R/W operations can be performed
- * using transactions.
- *
- * Note that, even though the terms "graph", "context", etc. are used, no code
- * in this module checks for valid RDF data. In theory any term can be any
- * binary data. This allows using the store for non-RDF graph data.
- *
- * TODO more doc
- */
- #ifndef _LSUP_STORE_MDB_H
- #define _LSUP_STORE_MDB_H
- #include "lmdb.h"
- #include "buffer.h"
- #include "store_base.h"
- // FIXME find a better cross-platform path.
- #define LSUP_MDB_STORE_URN "file://" TMPDIR "/mdb_store"
- /// MDB store interface.
- extern const LSUP_StoreInt mdbstore_int;
- #endif /* _LSUP_STORE_MDB_H */
|