Skip to content

david-bouyssie/mdbx4s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MDBX4S

MDBX4S is port of the Java library MDBX JNI for the Scala Native platform.

The goal of this project is to provide a thin wrapper around the LIBMDBX C library with an API similar to the 'MDBX JNI' one.

Current status of the project

This is the first release of this library, so the implementation/API are still unstable, you have been warned ;-) The long-term goal is to provide similar features, API and stability for both the JVM and SN implementations.

Please, also note that this library is not yet released on maven central, so to use it, you will have to clone this repository and then publishLocal from SBT.

Getting started

If you are already familiar with Scala Native you can jump right in by adding the following dependency in your sbt build file.

libraryDependencies += "com.github.david-bouyssie" %%% "mdbx4s" % "x.y.z"

To use in sbt, replace x.y.z with the latest version number (currently 0.1.0-SNAPSHOT).

If you are not familiar with Scala Native, please follow the relative Getting Started instructions.

Additionally, you need to install LIBMDBX on your system as follows:

git clone https://github.com/erthink/libmdbx.git ../libmdbx --branch v0.7.0
make -C ../libmdbx dist
  • Then copy the generated shared library in sub-directory of your own project (called for instance "nativelib"). Then you would also have to change your build.sbt file and add the following settings:
nativeLinkingOptions ++= Seq("-L" ++ baseDirectory.value.getAbsolutePath() ++ "/nativelib")

Useful links:

About

A Scala wrapper of the libmdbx C library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages