{"id":18003698,"url":"https://github.com/allyourcodebase/lmdb","last_synced_at":"2025-03-26T09:32:38.230Z","repository":{"id":260081613,"uuid":"863492839","full_name":"allyourcodebase/lmdb","owner":"allyourcodebase","description":"Lmdb using the zig build system","archived":false,"fork":false,"pushed_at":"2024-10-29T10:51:41.000Z","size":40,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-29T12:45:51.178Z","etag":null,"topics":["lmdb","zig","zig-package"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allyourcodebase.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}},"created_at":"2024-09-26T11:46:59.000Z","updated_at":"2024-10-29T10:51:45.000Z","dependencies_parsed_at":"2024-10-29T13:05:57.118Z","dependency_job_id":null,"html_url":"https://github.com/allyourcodebase/lmdb","commit_stats":null,"previous_names":["allyourcodebase/lmdb"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Flmdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Flmdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Flmdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Flmdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allyourcodebase","download_url":"https://codeload.github.com/allyourcodebase/lmdb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222137434,"owners_count":16937411,"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","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":["lmdb","zig","zig-package"],"created_at":"2024-10-30T00:10:31.129Z","updated_at":"2025-03-26T09:32:38.225Z","avatar_url":"https://github.com/allyourcodebase.png","language":"Zig","readme":"# lmdb\n[Lmdb](https://github.com/LMDB/lmdb/tree/mdb.master/libraries/liblmdb) using the [Zig](https://ziglang.org/) build system\n\n## Usage\n\nFirst, update your `build.zig.zon`:\n\n```elvish\n# Initialize a `zig build` project if you haven't already\nzig init\n# Support for `lmdb` starts with v0.9.31 and future releases\nzig fetch --save https://github.com/allyourcodebase/lmdb/archive/refs/tags/0.9.31+2.tar.gz\n# For latest git commit\nzig fetch --save https://github.com/allyourcodebase/lmdb/archive/refs/heads/main.tar.gz\n```\n\nImport `lmdb` dependency into `build.zig` as follows:\n\n```zig\n    const lmdb_dep = b.dependency(\"lmdb\", .{\n        .target = target,\n        .optimize = optimize,\n        .strip = true,\n        .lto = true,\n        .linkage = .static,\n    });\n```\n\nUsing `lmdb` artifacts and module in your project\n```zig\n    const exe = b.addExecutable(.{\n        .name = exe_name,\n        .root_source_file = b.path(\"src/main.zig\"),\n        .target = target,\n        .optimize = optimize,\n        .strip = strip,\n    });\n    exe.want_lto = lto;\n\n    const liblmdb = lmdb_dep.artifact(\"lmdb\");\n    const lmdb_module = lmdb_dep.module(\"lmdb\");\n\n    exe.root_module.addImport(\"mdb\", lmdb_module);\n    exe.linkLibrary(liblmdb);\n```\n\n## Supported on Linux, macOS and Windows\n- Zig 0.15.0-dev\n- Zig 0.14.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallyourcodebase%2Flmdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallyourcodebase%2Flmdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallyourcodebase%2Flmdb/lists"}