# Another Swift LMDB Wrapper

**URL:** <https://forums.swift.org/t/another-swift-lmdb-wrapper/90431>\
**Category:** Community Showcase\
**Tags:** memory-safety, framework, library, swift-package, databases\
**Created:** [November 3, 2026, 8:28pm UTC](https://forums.swift.org/t/another-swift-lmdb-wrapper/90431 "2026-11-03T20:28:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![craigwrong](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/craigwrong/32/34133_2.png) [@craigwrong](https://forums.swift.org/u/craigwrong)\
**Post date:** [November 3, 2026, 8:28pm UTC](https://forums.swift.org/t/another-swift-lmdb-wrapper/90431/1 "2026-11-03T20:28:16Z")

</div>

Hello, fellow Swifters…

I'm here to share a little side project that I created with the help of a robot… myself supervising along the way 🤖

Yes, it's another LMDB wrapper but this one has some niceties like:

- C library fully annotated with LLVM API Notes for safe interoperability wrappers
- Thin wrapper using spans / RawSpan and 0-copy semantics
- Strict memory safety checked
- ~Copyable ~Escapable DB transaction API with optional closure based read/writes
- Support for binary parsable and encodable key/values
- Exhaustive tests including exit tests and compilation failure tests for ~Escapable flows
- DocC documented with additional articles

We are currently testing it within the Swift Bitcoin project with pretty encouraging results both performance and readability-wise.

As always any feedback is both welcome and appreciated.

Keep on Swifting​✌

> <https://github.com/swift-bitcoin/swift-lmdb/blob/main/README-Swift.md>
