/
cassy.cabal
119 lines (111 loc) · 2.89 KB
/
cassy.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
Name: cassy
Version: 0.5.0.0
Synopsis: A high level driver for the Cassandra datastore
License: BSD3
License-file: LICENSE
Author: Ozgun Ataman
Maintainer: ozataman@gmail.com
Homepage: http://github.com/ozataman/cassy
Category: Database
Build-type: Simple
description:
The objective is to completely isolate away the thrift layer, providing
a more idiomatic Haskell experience working with Cassandra.
.
Certain parts of the API was inspired by pycassa (Python client) and
hscassandra (on Hackage).
.
Please see the Github repository for more detailed documentation,
release notes and examples.
.
A brief explanation of modules:
.
* /Database.Cassandra.Basic/: Contains a low level, simple
implementation of Cassandra interaction using the thrift API
underneath.
.
* /Database.Cassandra.JSON/: A higher level API that operates on
values with ToJSON and FromJSON isntances from the /aeson/
library. This module has in part been inspired by Bryan
O\'Sullivan\'s /riak/ client for Haskell.
.
* /Database.Cassandra.Pool/: Handles a /pool/ of connections to
multiple servers in a cluster, splitting the load among them.
.
* /Database.Cassandra.Pack/: Handles column types that Cassandra
recognizes and adds support for Composite Columns.
.
* /Database.Cassandra.Types/: A common set of types used everywhere.
.
Potential TODOs include:
.
* Support for counters and batch mutators
.
* Support for database admin operations
-- Extra-source-files:
Cabal-version: >=1.8
Library
hs-source-dirs: src
Exposed-modules:
Database.Cassandra.Basic
Database.Cassandra.Marshall
Database.Cassandra.JSON
Database.Cassandra.Pool
Database.Cassandra.Types
Database.Cassandra.Pack
Build-depends:
base >= 4 && < 5
, bytestring
, binary
, cereal
, safecopy
, containers
, network
, time
, mtl
, stm
, syb
, text
, attoparsec >= 0.10 && < 0.11
, aeson
, Thrift >= 0.6
, cassandra-thrift >= 0.8
, resource-pool
, data-default
, async
, errors
, MonadCatchIO-transformers >= 0.3
, retry
test-suite test
type: exitcode-stdio-1.0
main-is: Test.hs
ghc-options: -Wall
hs-source-dirs: test src
Build-depends:
base >= 4 && < 5
, bytestring
, binary
, cereal
, safecopy
, containers
, network
, time
, mtl
, stm
, syb
, text
, attoparsec >= 0.10 && < 0.11
, aeson
, Thrift >= 0.6
, cassandra-thrift >= 0.8
, resource-pool
, data-default
, errors
, MonadCatchIO-transformers >= 0.3
, retry
, test-framework >= 0.6
, test-framework-quickcheck2 >= 0.2.12.2
, test-framework-hunit >= 0.2.7
, QuickCheck
, HUnit
, derive