{"id":30134513,"url":"https://github.com/zxcv05/lmdb-zig","last_synced_at":"2025-10-22T21:44:22.371Z","repository":{"id":307917820,"uuid":"1031045988","full_name":"zxcv05/lmdb-zig","owner":"zxcv05","description":"Zig wrappers for lmdb","archived":false,"fork":false,"pushed_at":"2025-08-03T02:02:04.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-03T02:33:53.758Z","etag":null,"topics":["kv","kv-store","liblmdb","lmdb","wrapper","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zxcv05.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-08-02T22:18:59.000Z","updated_at":"2025-08-03T02:02:07.000Z","dependencies_parsed_at":"2025-08-03T02:33:54.928Z","dependency_job_id":"27cf965e-4d0a-43f4-9ab1-a862c0f8af90","html_url":"https://github.com/zxcv05/lmdb-zig","commit_stats":null,"previous_names":["zxcv05/lmdb-zig"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zxcv05/lmdb-zig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxcv05%2Flmdb-zig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxcv05%2Flmdb-zig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxcv05%2Flmdb-zig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxcv05%2Flmdb-zig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zxcv05","download_url":"https://codeload.github.com/zxcv05/lmdb-zig/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zxcv05%2Flmdb-zig/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269788810,"owners_count":24476002,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kv","kv-store","liblmdb","lmdb","wrapper","zig"],"created_at":"2025-08-10T21:14:38.443Z","updated_at":"2025-10-22T21:44:22.351Z","avatar_url":"https://github.com/zxcv05.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lmdb zig wrapper library\n\n## Goals\n- Functional wrappers providing for every use case covered by lmdb\n\n## Examples\nsee `/examples/`\n\n### \"How do I use this?\"\n- First, fetch the package: `zig fetch --save=lmdb git+https://github.com/zxcv05/lmdb-zig`\n- Then, modify your `build.zig`:\n```zig\n//! build.zig\n\nconst lmdb_dep = b.dependency(\"lmdb\", .{ .target = target, .optimize = optimize });\nconst lmdb_mod = lmdb_dep.module(\"lmdb\"); // for wrappers\nconst lmdb_lib = lmdb_dep.artifact(\"lmdb\"); // for linking (ignore this if you want to use system-installed library instead)\n\n// ...\n\nmy_module.addImport(\"lmdb\", lmdb_mod);\nmy_exe.linkLibrary(lmdb_lib);\n// OR, to use system-installed library instead:\nmy_exe.linkSystemLibrary(\"lmdb\");\n```\n- Finally, you can use lmdb in your project\n```zig\n//! my-file.zig\n\nconst lmdb = @import(\"lmdb\");\n\n// See `/examples/` for help with usage\npub fn my_func() !void {\n    const env: lmdb.Env = try .init(\"my-lmdb-env/\", .{});\n    defer env.deinit();\n    // ...\n}\n```\n\n### \"Can I enable lmdb's tracing?\"\nAs long as you're not using the system-installed library, you can freely control when tracing is enabled\n- In your `build.zig`, all you need to change is the following line:\n```zig\nconst lmdb_dep = b.dependency(\"lmdb\", .{ .target = target, .optimize = optimize, .@\"use-tracing\" = true });\n```\n\n## build.zig\n- zig wrappers available as module `lmdb`\n- translated `liblmdb` headers available as module `c`\n- compiled `liblmdb` static library available as artifact `lmdb`\n- available options:\n  - `-Dno-install`: For default step, build but don't install `liblmdb` (default: false)\n  - `-Duse-tracing`: Build `liblmdb` static library with debug tracing enabled (default: false)\n  - `-Dno-run`: For `test` step, build but don't run unit tests (default: false)\n  - `-Dtest-filter='x'`: For `test` step, filter which tests are run based on `x`\n  - `-Dtests-use-system-lib`: For `test` step, use system installed `liblmdb` library instead of the one we build (default: false)\n\n# License\nThis project is subject to the terms of the OpenLDAP Public License v2.8 (See `LICENSE`)\nCopyright 2025 lmdb-zig contributors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzxcv05%2Flmdb-zig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzxcv05%2Flmdb-zig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzxcv05%2Flmdb-zig/lists"}