Created
June 12, 2012 17:35
-
-
Save olauzon/2918927 to your computer and use it in GitHub Desktop.
Cassandra counter example
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
-- Works with CQL SPEC 3.0.0 and Cassandra 1.1.1 | |
-- Usage: cqlsh -3 < counter.cql | |
CREATE TABLE counters ( | |
counter_name varchar, | |
value counter, | |
PRIMARY KEY (counter_name) | |
) | |
WITH comment='Aggregate counters'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment