Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
105 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
# ccm-clj | ||
|
||
A Clojure library designed to ... well, that part is up to you. | ||
A Clojure interface to Cassandra Cluster Manager (https://github.com/pcmanus/ccm) suitable for use in integration tests. | ||
|
||
## Usage | ||
|
||
FIXME | ||
```clojure | ||
(if (not (ccm/cluster? "testcluster")) | ||
(do | ||
(ccm/new! "testcluster" "2.0.4" 3 (get-in cfg [:cql-port])) | ||
(ccm/cql! (io/file "./test/resources/test-keyspace.cql") nil "Keyspace") | ||
(ccm/cql! (io/resource "schema/test-schema.cql") "mailtest" "Schema") | ||
(ccm/cql! (io/file "./test/resources/test-data.cql") "mailtest" "Data")) | ||
(do | ||
(ccm/switch! "testcluster") | ||
(ccm/start! "testcluster"))) | ||
``` | ||
|
||
## License | ||
|
||
Copyright © 2014 FIXME | ||
Copyright © 2014 SMX Ltd (http://smxemail.com) and Contributors. | ||
|
||
Distributed under the Eclipse Public License either version 1.0 or (at | ||
your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
smxnz:32 | 20130101 | sid3 | 20130101 | msg-id-1 | null | null | null | fred@hotmail.com | null | null | subj12 | ||
smxnz:32 | 20130101 | sid6 | 20130101 | msg-id-2 | null | null | null | bob@hotmail.com | null | null | subj3 | ||
smxnz:32 | 20140101 | sid4 | 20130101 | msg-id-1 | null | null | null | fred@hotmail.com | null | null | subj12 | ||
smxnz:33 | 20130201 | sid9 | 20130201 | msg-id-1 | null | null | null | fred@hotmail.com | null | null | subj1 | ||
smxnz:33 | 20130101 | sid2 | 20130101 | msg-id-3 | null | null | null | bob@hotmail.com | null | null | subj1 | ||
smxnz:33 | 20130101 | sid5 | 20130101 | msg-id-1 | null | null | null | fred@hotmail.com | null | null | subj1 | ||
smxnz:33 | 20130101 | sid7 | 20130101 | msg-id-1 | null | null | null | fred@hotmail.com | null | null | subj1 |