Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/krdlab/haskell-relational-record-driver-mysql

MySQL driver for haskell-relational-record
https://github.com/krdlab/haskell-relational-record-driver-mysql

Last synced: 16 days ago
JSON representation

MySQL driver for haskell-relational-record

Awesome Lists containing this project

README

        

# MySQL driver for haskell-relational-record

[![Build Status](https://drone.io/github.com/krdlab/haskell-relational-record-driver-mysql/status.png)](https://drone.io/github.com/krdlab/haskell-relational-record-driver-mysql/latest)

*This project was merged into [haskell-relational-record](https://github.com/khibino/haskell-relational-record).*

## Prepare

```sh
$ git clone [email protected]:khibino/haskell-relational-record.git
$ git clone [email protected]:bos/hdbc-mysql.git
$ git clone [email protected]:krdlab/haskell-relational-record-driver-mysql.git
```

```sh
$ cd haskell-relational-record-driver-mysql/example
$ cabal sandbox init
$ cabal sandbox add-source \
../../haskell-relational-record/HDBC-session \
../../haskell-relational-record/names-th \
../../haskell-relational-record/persistable-record \
../../haskell-relational-record/relational-query \
../../haskell-relational-record/relational-query-HDBC \
../../haskell-relational-record/relational-schemas \
../../haskell-relational-record/sql-words \
../../hdbc-mysql \
../
$ cabal install --only-dependencies

$ mysql -h localhost -u root -p < setup.sql
```

## Run example

```sh
$ cd haskell-relational-record-driver-mysql/example
$ cabal build
$ ./dist/build/example/example
[("krdlab",2014-02-01),("bar",2014-02-11)]
[("[email protected]",2014-02-11)]
```