{"id":27942437,"url":"https://github.com/pjtatlow/jammdb","last_synced_at":"2026-04-08T19:30:59.476Z","repository":{"id":50600716,"uuid":"239381576","full_name":"pjtatlow/jammdb","owner":"pjtatlow","description":"Just Another Memory Mapped Database","archived":false,"fork":false,"pushed_at":"2023-11-04T04:23:44.000Z","size":1159,"stargazers_count":275,"open_issues_count":8,"forks_count":20,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-12-14T02:58:23.364Z","etag":null,"topics":["b-tree","database","embedded-database","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pjtatlow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2020-02-09T22:06:25.000Z","updated_at":"2025-12-04T15:14:52.000Z","dependencies_parsed_at":"2025-05-07T11:44:51.677Z","dependency_job_id":null,"html_url":"https://github.com/pjtatlow/jammdb","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/pjtatlow/jammdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjtatlow%2Fjammdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjtatlow%2Fjammdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjtatlow%2Fjammdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjtatlow%2Fjammdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pjtatlow","download_url":"https://codeload.github.com/pjtatlow/jammdb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjtatlow%2Fjammdb/sbom","scorecard":{"id":736295,"data":{"date":"2025-08-11","repo":{"name":"github.com/pjtatlow/jammdb","commit":"f406a0d80f12dcc062152c3fb3c85459151dfbc9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":2,"reason":"Found 6/26 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/rust.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/pjtatlow/jammdb/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/pjtatlow/jammdb/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/pjtatlow/jammdb/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/pjtatlow/jammdb/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/pjtatlow/jammdb/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:68: update your workflow using https://app.stepsecurity.io/secureworkflow/pjtatlow/jammdb/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/pjtatlow/jammdb/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:82: update your workflow using https://app.stepsecurity.io/secureworkflow/pjtatlow/jammdb/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:85: update your workflow using https://app.stepsecurity.io/secureworkflow/pjtatlow/jammdb/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:101: update your workflow using https://app.stepsecurity.io/secureworkflow/pjtatlow/jammdb/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:104: update your workflow using https://app.stepsecurity.io/secureworkflow/pjtatlow/jammdb/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:119: update your workflow using https://app.stepsecurity.io/secureworkflow/pjtatlow/jammdb/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:122: update your workflow using https://app.stepsecurity.io/secureworkflow/pjtatlow/jammdb/rust.yml/master?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   7 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 17 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T15:58:01.975Z","repository_id":50600716,"created_at":"2025-08-22T15:58:01.976Z","updated_at":"2025-08-22T15:58:01.976Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31571599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["b-tree","database","embedded-database","rust"],"created_at":"2025-05-07T11:33:42.480Z","updated_at":"2026-04-08T19:30:59.443Z","avatar_url":"https://github.com/pjtatlow.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# jammdb\n\n## Just Another Memory Mapped Database\n\n[![crates.io](https://img.shields.io/crates/v/jammdb?style=flat-square)](https://crates.io/crates/jammdb)\n[![docs.rs](https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square)](https://docs.rs/jammdb)\n[![Build status](https://img.shields.io/github/actions/workflow/status/pjtatlow/jammdb/rust.yml?branch=master\u0026style=flat-square)](https://github.com/pjtatlow/jammdb/actions/workflows/rust.yml)\n[![Coverage Status](https://img.shields.io/codecov/c/gh/pjtatlow/jammdb?style=flat-square)](https://codecov.io/gh/pjtatlow/jammdb)\n[![License](https://img.shields.io/crates/l/jammdb?style=flat-square)](https://crates.io/crates/jammdb)\n[![Dependency Status](https://deps.rs/repo/github/pjtatlow/jammdb/status.svg?style=flat-square)](https://deps.rs/repo/github/pjtatlow/jammdb)\n\n`jammdb` is an embedded, single-file database that allows you to store key /\nvalue pairs as bytes.\n\nIt started life as a Rust port of\n[Ben Johnson's](https://twitter.com/benbjohnson)\n[BoltDB](https://github.com/boltdb/bolt), which was inspired by\n[Howard Chu's](https://twitter.com/hyc_symas) [LMDB](http://symas.com/mdb/), so\nplease check out both of these awesome projects!\n\n`jammdb` offers [ACID](https://en.wikipedia.org/wiki/ACID) compliance,\n[serializable](https://en.wikipedia.org/wiki/Serializability) and\n[isolated](https://en.wikipedia.org/wiki/Isolation_(database_systems))\ntransactions, with multiple lock-free readers and a single concurrent writer.\nThe data is organized in a\n[single level](https://en.wikipedia.org/wiki/Single-level_store)\n[B+ tree](https://en.wikipedia.org/wiki/B%2B_tree) so random and sequential\nreads are very fast. The underlying file is\n[memory mapped](https://en.wikipedia.org/wiki/Memory-mapped_file), so reads\nrequire no additional memory allocation.\n\n## Supported platforms\n\n`jammdb` is continuously cross-compiled and tested on the following platforms:\n\n- `x86_64-unknown-linux-gnu` (Linux)\n- `i686-unknown-linux-gnu`\n- `x86_64-unknown-linux-musl` (Linux MUSL)\n- `x86_64-apple-darwin` (OSX)\n- `x86_64-pc-windows-msvc` (Windows)\n- `i686-pc-windows-msvc`\n- `x86_64-pc-windows-gnu`\n- `i686-pc-windows-gnu`\n\n## Examples\n\nHere are a couple of simple examples to get you started, but you should check\nout the docs for more details.\n\n### Simple put and get\n\n```rust\nuse jammdb::{DB, Data, Error};\n\nfn main() -\u003e Result\u003c(), Error\u003e {\n{\n    // open a new database file\n    let db = DB::open(\"my-database.db\")?;\n\n    // open a writable transaction so we can make changes\n    let tx = db.tx(true)?;\n\n    // create a bucket to store a map of first names to last names\n    let names_bucket = tx.create_bucket(\"names\")?;\n    names_bucket.put(\"Kanan\", \"Jarrus\")?;\n    names_bucket.put(\"Ezra\", \"Bridger\")?;\n\n    // commit the changes so they are saved to disk\n    tx.commit()?;\n}\n{\n    // open the existing database file\n    let db = DB::open(\"my-database.db\")?;\n    // open a read-only transaction to get the data\n    let tx = db.tx(false)?;\n    // get the bucket we created in the last transaction\n    let names_bucket = tx.get_bucket(\"names\")?;\n    // get the key/ value pair we inserted into the bucket\n    if let Some(data) = names_bucket.get(\"Kanan\") {\n        assert!(data.is_kv());\n        assert_eq!(data.kv().value(), b\"Jarrus\");\n    }\n}\n    Ok(())\n}\n```\n\n### Storing structs\n\n```rust\nuse jammdb::{DB, Data, Error};\nuse serde::{Deserialize, Serialize};\n\n#[derive(Debug, PartialEq, Deserialize, Serialize)]\nstruct User {\n    username: String,\n    password: String,\n}\n\nfn main() -\u003e Result\u003c(), Error\u003e {\n    let user = User{\n        username: \"my-user\".to_string(),\n        password: \"my-password\".to_string(),\n    };\n{\n    // open a new database file and start a writable transaction\n    let db = DB::open(\"my-database.db\")?;\n    let tx = db.tx(true)?;\n\n    // create a bucket to store users\n    let users_bucket = tx.create_bucket(\"users\")?;\n\n    // serialize struct to bytes and store in bucket\n    let user_bytes = rmp_serde::to_vec(\u0026user).unwrap();\n    users_bucket.put(\"user1\", user_bytes)?;\n\n    // commit the changes so they are saved to disk\n    tx.commit()?;\n}\n{\n    // open the existing database file\n    let db = DB::open(\"my-database.db\")?;\n    // open a read-only transaction to get the data\n    let tx = db.tx(false)?;\n    // get the bucket we created in the last transaction\n    let users_bucket = tx.get_bucket(\"users\")?;\n    // get the key / value pair we inserted into the bucket\n    if let Some(data) = users_bucket.get(\"user1\") {\n        if data.is_kv() {\n            let kv = data.kv();\n            // deserialize into a user struct\n            let db_user: User = rmp_serde::from_slice(kv.value()).unwrap();\n            assert_eq!(db_user, user);\n        }\n    }\n}\n    Ok(())\n}\n```\n\n## MSRV\n\nCurrently `1.63`\n\n## License\n\nAvailable under both the [Apache License](LICENSE-APACHE) or the\n[MIT license](LICENSE-MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjtatlow%2Fjammdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpjtatlow%2Fjammdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjtatlow%2Fjammdb/lists"}