{"repo":"theseyan/lmdbx-zig","free":true,"listed":false,"github":"https://github.com/theseyan/lmdbx-zig","clone":"git clone https://github.com/theseyan/lmdbx-zig.git","description":"Zig bindings for libMDBX (a fork of LMDB)","language":"Zig","stars":15,"topics":["database","libmdbx","lmdb","zig","zig-package"],"license":"MIT","category":"databases-storage","readme_excerpt":"lmdbx-zig Zig bindings for libMDBX (a fork of LMDB). Built and tested with Zig version 0.16.0 . libmdbx is an extremely fast, compact, powerful, embedded, transactional key-value database with a specific set of properties and capabilities, focused on creating unique lightweight solutions. libmdbx is superior to legendary LMDB in terms of features and reliability, not inferior in performance. In comparison to LMDB , libmdbx make things \"just work\" perfectly and out-of-the-box, not silently and catastrophically break down. Table of Contents - Installation - Usage - API - Environment - BatchedDB - Transaction - Database - Cursor - Low-level bindings - Benchmarks Installation Copy the hash generated and add lmdbx-zig to build.zig.zon : Targets lmdbx-zig officially supports cross-compiling to the following target triples: - x86 64-linux-gnu , x86 64-macos , x86 64-windows-gnu - aarch64-linux-gnu , aarch64-macos , aarch64-windows-gnu Successful compilation on other targets is not guaranteed (but might work). Usage A libMDBX environment can either have multiple named databases, or a single unnamed database. To use a single unnamed database, open a transaction and use the txn.get , txn.set , txn.delete , and txn.cursor methods directly. To use named databases, open the environment with a non-zero max dbs value. Then open each named database using Transaction.database , which returns a Database struct with db.get / db.set / db.delete / db.cursor methods. You don't have to close databa","default_branch":null,"files":null,"tree":[],"storefront":"/r/theseyan","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/theseyan/lmdbx-zig/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}