traildb: TrailDB bindings for Haskell

[ database, library, mit ] [ Propose Tags ] [ Report a vulnerability ]

Check out README.md for information on these bindings.

TrailDB project home page is at traildb.io


[Skip to Readme]

Modules

[Last Documentation]

  • System
    • System.TrailDB
      • System.TrailDB.Error
      • System.TrailDB.Internal

Flags

Automatic Flags
NameDescriptionDefault
use-ioref

Use IORef instead of MVar as the container for Tdb. Can improve performance (very slightly) but you lose thread safety.

Disabled
build-wikipedia-benchmark

Build the wikipedia scanning executable from https:/github.comjoeyrobert/traildb-benchmark This program requires you to download the wikipedia TrailDB manually; check out the linked git repository for where to get it.

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.1.0, 0.1.2.0, 0.1.3.0, 0.1.4.0, 0.1.4.1
Dependencies base (>=4.6 && <5.0), bytestring, containers (>=0.4 && <1.0), directory, exceptions, primitive, profunctors, text, time, traildb, transformers, unix, vector [details]
License MIT
Copyright AdRoll Inc (c) 2016-2017
Author Mikko Juola
Maintainer mikko.juola@adroll.com
Category Database
Source repo head: git clone https://github.com/traildb/traildb-haskell
Uploaded by Adeon at 2018-10-22T14:16:51Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables traildb-wikipedia-benchmark
Downloads 4856 total (25 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2018-10-22 [all 3 reports]

Readme for traildb-0.1.4.1

[back to package description]

Hackage Travis CI

TrailDB Haskell bindings

TrailDB logo

These are the official Haskell bindings to TrailDB. Most of the API is covered (with the notable exception of filters). Check out System.TrailDB module for some examples and documentation.

How to build

These bindings can be installed using cabal-install or stack on Linux. At least GHC 7.8 is required.

Fetch the code in some way. You can clone [https://github.com/traildb/traildb-haskell]. Then follow these instructions.

You need at least traildb and Judy libraries installed to compile and use these bindings. Judy is a dependency of TrailDB itself so if you have TrailDB the C library installed properly, then most likely you don't need to do anything else regarding dependencies.

cabal-install

Cabal is usually in the package repositories of your distribution.

$ apt-get install cabal-install      # Debian/Mint/Ubuntu
$ dnf install ghc cabal-install      # Fedora 22
$ pacman -S ghc cabal-install        # Arch Linux
$ pkg install hs-cabal-install       # FreeBSD

$ cabal install                      # Run this in the root of traildb-haskell

# Test it out!

$ cd examples
$ ghc tutorial_simple_traildb.hs -o tutorial
$ ./tutorial

After this, bindings should be usable in other Haskell projects by requiring traildb.

stack

Stack is a new fancy Haskell build tool. Because it's new and fancy, it doesn't quite have the same level of presence in Linux package repositories than cabal-install.

You can manually download stack from [http://www.haskellstack.org/] if it's not in your repositories.

# Once you have `stack` in your PATH:

$ stack setup      # May be optional if you have GHC already installed and it can be used
$ stack install

# Test it out!

$ cd examples
$ stack ghc -- tutorial_simple_traildb.hs -o tutorial
$ ./tutorial

License

These bindings are licensed under the MIT license.

How to contribute or report bugs

Use our GitHub page to report issues or to open pull requests.

Example program

Check out examples/tutorial_simple_traildb.hs in this repository.