Skip to content

Instantly share code, notes, and snippets.

@lenards
Created January 21, 2015 17:24
Show Gist options
  • Save lenards/e97ce13347e7ad454b86 to your computer and use it in GitHub Desktop.
Save lenards/e97ce13347e7ad454b86 to your computer and use it in GitHub Desktop.
from cascor-r2 vm
student@cascor:~$ ccm node1 cqlsh
Connected to cascor at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 2.1.2-SNAPSHOT | CQL spec 3.2.0 | Native protocol v3]
Use HELP for help.
cqlsh> CONSISTENCY;
Current consistency level is 1.
cqlsh> CONSISTENCY QUORUM;
Consistency level set to QUORUM.
cqlsh> CONSISTENCY;
Current consistency level is 4.
cqlsh> CONSISTENCY TWO;
Consistency level set to TWO.
cqlsh> CONSISTENCY;
Current consistency level is 2.
cqlsh> CONSISTENCY THREE;
Consistency level set to THREE.
cqlsh> CONSISTENCY;
Current consistency level is 3.
cqlsh> CONSISTENCY ALL;
Consistency level set to ALL.
cqlsh> CONSISTENCY;
Current consistency level is 5.
@lenards
Copy link
Author

lenards commented Jan 21, 2015

Actually, cqlsh is using the DataStax python-driver under the covers, but the integer=>enum values are the same:

https://github.com/datastax/python-driver/blob/f1163a9a9aac4ab5de937533fc9693b58e7da121/cassandra/__init__.py#L30-L94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment