You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2012/07/28 21:05:11 UTC
[2/3] git commit: Fix online help in cqlsh for COPY commands. Patch
by paul cannon, reviewed by brandon williams for CASSANDRA-4469
Fix online help in cqlsh for COPY commands.
Patch by paul cannon, reviewed by brandon williams for CASSANDRA-4469
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/2d71a8ee
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/2d71a8ee
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/2d71a8ee
Branch: refs/heads/trunk
Commit: 2d71a8eea5e773e879e311fb5d14a06f30093bd4
Parents: 0819ad1
Author: Brandon Williams <br...@apache.org>
Authored: Sat Jul 28 14:01:57 2012 -0500
Committer: Brandon Williams <br...@apache.org>
Committed: Sat Jul 28 14:01:57 2012 -0500
----------------------------------------------------------------------
bin/cqlsh | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra/blob/2d71a8ee/bin/cqlsh
----------------------------------------------------------------------
diff --git a/bin/cqlsh b/bin/cqlsh
index c4b35fc..a60b6f9 100755
--- a/bin/cqlsh
+++ b/bin/cqlsh
@@ -1440,11 +1440,13 @@ class Shell(cmd.Cmd):
r"""
COPY [cqlsh only]
- Imports CSV data into a Cassandra table.
+ COPY x FROM: Imports CSV data into a Cassandra table
+ COPY x TO: Exports data from a Cassandra table in CSV format.
COPY <table_name> [ ( column [, ...] ) ]
FROM ( '<filename>' | STDIN )
[ WITH <option>='value' [AND ...] ];
+
COPY <table_name> [ ( column [, ...] ) ]
TO ( '<filename>' | STDOUT )
[ WITH <option>='value' [AND ...] ];