Code Monkey home page Code Monkey logo

typedb-client-haskell's Introduction

Build

TypeDB Client for Haskell (INCUBATING)

This is a TypeDB client implementation for Haskell. It uses AwakeSecurity's gRPC library to implement the TypeDB Protocol. There are three versions planned (all within this package):

  • Type-Safe-Client: Haskell code compiled along with a TypeDB schema to support strongly typed queries and other operations for a specific Schema
  • High-Level-Client: A nice API for the TypeDB Protocol and most needs.
  • Low-Level-Client: a usable wrapper around the generated gRPC Code.

Building

This project uses Nix. This is only partly wanted because it strongly restrict interaction with the "standard" way of building Haskell using stack/cabal. However, the underlying gRPC library needs to be built with nix right now. Once it is possible to build the library without nix, building with cabal solely will be possible.

To get a development environment use

> nix-shell

Building from within the dev env:

> cabal build

to build the project in one command:

> nix-shell --command "cabal update && cabal build"

Status

the haskell client successfully performed its' first action:

  • querying the available DBs,
  • creating a new one
  • initializing it with a schema
  • committing the whole thing
  • closing the connection

query DSL compiles to proper query strings

still a long road to go; but nevertheless a small victory ^^

Beware: Currently, the core code is messy, there is not much testing and there are still design choices planned that are subject to change if I see fit. Enter at own risk ;)

Contributing

Contributions in form of pull requests and issues are welcome. If you plan to contribute larger parts, question the design choices or anything of that magnitude (or if you simply want some human contact) please visit the devleopment channel on discord in the typedb discord server

To get a better overview of the project and the code there are also two diagrams that depict a messageflow and the module architecture and a report detailing the design decisions made along the way.

I will also add a browsable haddock documentation in time.

typedb-client-haskell's People

Contributors

haikalpribadi avatar haskie-lambda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

stjordanis

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.