[ 
https://issues.apache.org/jira/browse/CASSANDRA-2221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081248#comment-13081248
 ] 

Hudson commented on CASSANDRA-2221:
-----------------------------------

Integrated in Cassandra-0.8 #261 (See 
[https://builds.apache.org/job/Cassandra-0.8/261/])
    Add 'show creates' commands to the cli to export schema.
Patch by Aaron Morton, reviewed by xedin for CASSANDRA-2221

brandonwilliams : 
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1155100
Files : 
* 
/cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/cli/CliClient.java
* 
/cassandra/branches/cassandra-0.8/src/resources/org/apache/cassandra/cli/CliHelp.yaml
* 
/cassandra/branches/cassandra-0.8/test/unit/org/apache/cassandra/cli/CliTest.java
* 
/cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/cli/CliCompleter.java
* /cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/cli/Cli.g


> 'show create' commands on the CLI to export schema
> --------------------------------------------------
>
>                 Key: CASSANDRA-2221
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2221
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>            Reporter: Jeremy Hanna
>            Assignee: Aaron Morton
>            Priority: Minor
>              Labels: cli
>             Fix For: 0.8.4
>
>         Attachments: 0001-add-show-schema-statement-8.patch, 
> 0001-add-show-schema-statement-v08-2.patch, 
> 0001-add-show-schema-statement.patch, CASSANDRA-2221-v2-rebased.patch
>
>
> It would be nice to have 'show create' type of commands on the command-line 
> so that it would generate the DDL for the schema.
> A scenario that would make this useful is where a team works out a data model 
> over time with a dev cluster.  They want to use parts of that schema for new 
> clusters that they create, like a staging/prod cluster.  It would be very 
> handy in this scenario to have some sort of export mechanism.
> Another use case is for testing purposes - you want to replicate a problem.
> We currently have schematool for import/export but that is deprecated and it 
> exports into yaml.
> This new feature would just be able to 'show' - or export if they want the 
> entire keyspace - into a script or commands that could be used in a cli 
> script.  It would need to be able to regenerate everything about the keyspace 
> including indexes and metadata.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to