You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by sl...@apache.org on 2012/11/12 08:25:36 UTC

git commit: Update CQL example in readme file

Updated Branches:
  refs/heads/cassandra-1.2.0 de6260ddc -> 020a83770


Update CQL example in readme file


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/020a8377
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/020a8377
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/020a8377

Branch: refs/heads/cassandra-1.2.0
Commit: 020a83770f65a2d7f4c5739bcc578e973923f4bb
Parents: de6260d
Author: Sylvain Lebresne <sy...@datastax.com>
Authored: Mon Nov 12 08:25:27 2012 +0100
Committer: Sylvain Lebresne <sy...@datastax.com>
Committed: Mon Nov 12 08:25:27 2012 +0100

----------------------------------------------------------------------
 README.txt |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/020a8377/README.txt
----------------------------------------------------------------------
diff --git a/README.txt b/README.txt
index 3391f64..1356c9c 100644
--- a/README.txt
+++ b/README.txt
@@ -52,24 +52,23 @@ Similarly, "uninstall" will remove the service.
 
 Now let's try to read and write some data using the Cassandra Query Language:
 
-  * bin/cqlsh --cql3
+  * bin/cqlsh
 
 The command line client is interactive so if everything worked you should
 be sitting in front of a prompt...
 
   Connected to Test Cluster at localhost:9160.
-  [cqlsh 2.2.0 | Cassandra 1.1.3 | CQL spec 3.0.0 | Thrift protocol 19.32.0]
+  [cqlsh 2.2.0 | Cassandra 1.2.0 | CQL spec 3.0.0 | Thrift protocol 19.35.0]
   Use HELP for help.
   cqlsh> 
- 
+
 
 As the banner says, you can use 'help;' or '?' to see what CQL has to
 offer, and 'quit;' or 'exit;' when you've had enough fun. But lets try
 something slightly more interesting:
 
   cqlsh> CREATE SCHEMA schema1 
-         WITH strategy_class = 'SimpleStrategy'
-         AND strategy_options:replication_factor='1';
+         WITH replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
   cqlsh> USE schema1;
   cqlsh:Schema1> CREATE TABLE users (
                    user_id varchar PRIMARY KEY,
@@ -89,7 +88,7 @@ something slightly more interesting:
 If your session looks similar to what's above, congrats, your single node
 cluster is operational! 
 
-For more on what commands are supported by CQL, see 
+For more on what commands are supported by CQL, see
 https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile.  A
 reasonable way to think of it is as, "SQL minus joins and subqueries."