mdbx

mdbx

libmdbx interface for Crystal

Installation

  1. Add the dependency to your shard.yml:
dependencies:
  mdbx:
    github: mentalblood0/mdbx
  1. Run shards install

Usage

See spec/mdbx_spec.cr

Testing

Basic tests:

crystal spec --error-trace --tag '~leakage' --order random --fail-fast
rm /tmp/mdbx /tmp/mdbx-lck

Leakage test:

crystal spec --error-trace --tag 'leakage' --release
rm /tmp/mdbx /tmp/mdbx-lck

Leakage test just runs CRUD operations indefinitely long until program is interrupted, so any stable memory leaks in CRUD interface implementation should lead to RAM lack and program termination by OS

Repository

mdbx

Owner
Statistic
  • 0
  • 0
  • 0
  • 1
  • 0
  • 6 days ago
  • August 5, 2025
License

MIT License

Links
Synced at

Thu, 14 Aug 2025 05:26:50 GMT

Languages