lmdb

Version, currently master branch1 version
  • master branchlatestApr 22, 2021

github.com/timuckun/crystal-liblmdb

Crystal language bindings for the Symas LMDB database

7 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  lmdb:
    github: timuckun/crystal-liblmdb
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
no constraint declared
License
MIT
Author
Tim Uckun <tim@uckun.com>

Dependencies

This version declares no dependencies.

README

# lmdb

Crystal bindings for the LMDB database by Symas.  It covers most but not all of the library functionality.

TODO:

1. Make better use of read only transactions by reusing them
2. Write specs for child transactions
3. Implement callback functions
4. Enhance the database API to implement more enumerable like functionality



## Installation


Add this to your application's `shard.yml`:

```yaml
dependencies:
  lmdb:
    github: timuckun/crystal-liblmdb
```


## Usage


```crystal
require "lmdb"
```


Please see the specs for how to use this library, especially
transaction_spec and cursor_spec. The database_spec shows how to use it in the simplest form possible

## Development

Pull requests are always welcome

## Contributing

1. Fork it ( https://github.com/timuckun/crystal-liblmdb/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request

## Contributors

- [Tim Uckun](https://github.com/timuckun Tim Uckun - creator, maintainer
- A massive debt of gratitude to the Crystal dev team for answering all the questions on the mailing list. This could not have happened without their help.