GithubHelp home page GithubHelp logo

traildb / traildb-crystal Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 2.0 81 KB

Crystal bindings for TrailDB

Home Page: https://traildb.github.io/traildb-crystal/

License: MIT License

Makefile 1.37% C 0.35% Crystal 98.28%
big-data crystal database time-series traildb

traildb-crystal's Introduction

Gitter Travis CI Coverage Status

TrailDB

TrailDB is an efficient tool for storing and querying series of events. This repository contains the core C library and the tdb command line tool.

Learn more at traildb.io.

Quick start

For detailed installation instructions, see Getting Started guide.

Installing binaries

On OSX, TrailDB is available through homebrew:

$ brew install traildb

Linux binaries are not available yet.

Compiling and installing from source

Install Dependencies

$ apt-get install libarchive-dev libjudy-dev pkg-config

For RPM-based distros:

$ yum install judy-devel libarchive-devel pkg-config

For OSX:

$ brew install traildb/judy/judy libarchive pkg-config

For FreeBSD:

$ sudo pkg install python libarchive Judy pkgconf gcc

Note that your systems package manager may have too old of libjudy. You may also require a patch if you are using gcc 4.9.

Build TrailDB

$ ./waf configure
$ ./waf install

Alternatively you may use autotools

$ ./autogen.sh
$ ./configure
$ make
$ make install

Run Tests

$ ./waf test

traildb-crystal's People

Contributors

joeyrobert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

joeyrobert gsumo

traildb-crystal's Issues

Macro to enhance Event Filter logic

Instead of specifying event filters like this:

event_filter = traildb.create_filter([[{"field1", "a"}, {"field2", "4"}]])

How about we use macros to specify filters using equality/negative equality directly, like:

event_filter = traildb.create_filter("field1" == "a" && "field2" == "4")

This could greatly simplify readability of negation case, and conjuctions:

("field1" == "a" && "field2" != "4") || !("field2" == "3")

It would have to error out before two levels of nesting, as TrailDB supports only one level of conjunctions.

Work in --release mode

TrailDB bindings do not currently work in release mode. It appears pointer address are incorrect coming from the C library.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.