Packages

Exleveldb is a thin wrapper around the Erlang module, eleveldb. At the moment, Exleveldb exposes functions for all features of LevelDB as well as an Elixir stream interface to Eleveldb's iterators.

Current section

Files

Jump to
exleveldb mix.exs
Raw

mix.exs

defmodule Exleveldb.Mixfile do
use Mix.Project
def project do
[app: :exleveldb,
version: "0.3.0",
elixir: "~> 1.0.2",
description: description,
package: package,
deps: deps]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[applications: [:eleveldb]]
end
# Dependencies can be Hex packages:
#
# {:mydep, "~> 0.3.0"}
#
# Or git/path repositories:
#
# {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
#
# Type `mix help deps` for more examples and options
defp deps do
[
{:eleveldb, github: "basho/eleveldb"}
]
end
defp description do
"""
Exleveldb is a thin wrapper around Basho's eleveldb (github.com/basho/eleveldb).
At the moment, Exleveldb exposes functions for the following features of LevelDB:
- Opening a new datastore.
- Closing an open datastore.
- Getting values by key.
- Storing individual key-value pairs.
- Deleting stored key-value pairs.
- Checking if a datastore is empty.
- Folding over key-value pairs in the datastore.
- Folding over keys in the datastore.
- Batch writes to the datastore (put or delete).
Note: Because eleveldb is not a hex package, you will need to run mix do deps.get, deps.compile when using it in your project.
"""
end
defp package do
[
files: ["lib", "mix.exs", "README", "LICENSE", "test"],
contributors: ["Jonas Skovsgaard Christensen"],
licenses: ["Apache v2.0"],
links: %{"Github" => "https://github.com/skovsgaard/exleveldb.git"}
]
end
end