[
https://issues.apache.org/jira/browse/PHOENIX-3431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16468103#comment-16468103
]
William Shen commented on PHOENIX-3431:
---------------------------------------
[~jamestaylor], we have created a standalone tool to create DDL for
table/indices from an existing schema. Would this be something that the
community would be interested in taking in? Or would the project be interested
only in integrating the functionality into something like a SHOW CREATE TABLE?
The interface to our tool looks like:
- Once built using {{mvn clean install}}, this tool can be run from the command
line using {{java -jar path/to/ddl-generator.jar}}. Run with the -h or --help
flags for usage instructions.
- The DDL Generator takes the following command-line arguments
{quote} --connection The JDBC connection string the generator should use to
connect to Phoenix.
--schema The schema to generate DDLs for.
--tables An optional comma-delimited list of tables to generate DDLs for.
--indices An optional comma-delimited list of base tables to generate
index DDLs for.
--newSchema Optionally, the schema name to use in the generated DDLs instead
of --schema.
--indicesOnly If this flag is present, generate DDLs for indices only.
--tablesOnly If this flag is present, generate DDLs for tables only.
-h, --help Print the usage instructions.{quote}
> Generate DDL from an existing Phoenix Schema
> --------------------------------------------
>
> Key: PHOENIX-3431
> URL: https://issues.apache.org/jira/browse/PHOENIX-3431
> Project: Phoenix
> Issue Type: New Feature
> Affects Versions: 4.6.0, 4.8.0
> Reporter: Kumar Palaniappan
> Assignee: Kumar Palaniappan
> Priority: Minor
> Fix For: 4.8.1
>
>
> A tool to generate DDLs for Phoenix tables and indices from an existing
> schema.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)