Nim wrapper for RocksDB, a persistent key-value store for Flash and RAM Storage.
Go to file
web3-developer fc2ba4a836
Update open procs to support adding the default column family if it is missing from the columnFamilies list. (#39)
2024-03-07 09:02:24 +08:00
.github/workflows Fix broken CI (#35) 2024-02-13 20:59:41 +07:00
examples Rocksdb rewrite integration (#38) 2024-03-05 11:12:37 +08:00
rocksdb Update open procs to support adding the default column family if it is missing from the columnFamilies list. (#39) 2024-03-07 09:02:24 +08:00
tests Update open procs to support adding the default column family if it is missing from the columnFamilies list. (#39) 2024-03-07 09:02:24 +08:00
.gitignore Fix broken CI (#35) 2024-02-13 20:59:41 +07:00
LICENSE-APACHEv2 fix license files 2018-11-14 12:57:17 -06:00
LICENSE-MIT fix license files 2018-11-14 12:57:17 -06:00
README.md Rocksdb rewrite integration (#38) 2024-03-05 11:12:37 +08:00
config.nims Fix broken CI (#35) 2024-02-13 20:59:41 +07:00
nim.cfg Add a basic higher-level API 2018-06-25 15:59:23 +03:00
rocksdb.nim Rocksdb rewrite integration (#38) 2024-03-05 11:12:37 +08:00
rocksdb.nimble Rocksdb rewrite integration (#38) 2024-03-05 11:12:37 +08:00

README.md

Nim-RocksDB

Build Status (Travis) Windows build status (Appveyor) License: Apache License: MIT Stability: experimental

A Nim wrapper for Facebook's RocksDB, a persistent key-value store for Flash and RAM Storage.

Current status

Nim-RocksDB provides a wrapper for the low-level functions in the librocksdb c library.

Requirements

A RocksDB installation that provides librocksdb.so. This means that on Debian, and possibly on other Linux distros, you need "librocksdb-dev", not just a versioned "librocksdbX.Y" package that only provides librocksdb.so.X.Y.Z.

Usage

See simple_example

Static linking

To statically link librocksdb, you would do something like:

nim c -d:LibrocksbStaticArgs='-l:librocksdb.a' --gcc.linkerexe=g++ --threads:on your_program.nim

(we need the C++ linker profile because it's a C++ library)

Contribution

Any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

License

Wrapper License

This repository is licensed and distributed under either of

or

at your option. This file may not be copied, modified, or distributed except according to those terms.

Dependency License

RocksDB is developed and maintained by Facebook Database Engineering Team. It is built on earlier work on LevelDB by Sanjay Ghemawat (sanjay@google.com) and Jeff Dean (jeff@google.com)

RocksDB is dual-licensed under both the GPLv2 and Apache License, Version 2.0, (LICENSE-APACHEv2 or http://www.apache.org/licenses/LICENSE-2.0). You may select, at your option, one of the above-listed licenses.