ApplyVSchema

vtctldclient ApplyVSchema

Applies the VTGate routing schema to the provided keyspace. Shows the result after application.

1. vtctldclient ApplyVSchema {--vschema=<vschema> || --vschema-file=<vschema file> || --sql=<sql> || --sql-file=<sql file>} [--cells=c1,c2,...] [--skip-rebuild] [--dry-run] <keyspace>

Options

1. --cells strings                           Limits the rebuild to the specified cells, after application. Ignored if --skip-rebuild is set.
2. --dry-run                                 If set, do not save the altered vschema, simply echo to console.
3. -h, --help                                    help for ApplyVSchema
4. --skip-rebuild                            Skip rebuilding the SrvSchema objects.
5. --sql alter table t add vindex hash(id)   A VSchema DDL SQL statement, e.g. alter table t add vindex hash(id).
6. --sql-file string                         Path to a file containing a VSchema DDL SQL.
7. --vschema string                          VSchema to apply, in JSON form.
8. --vschema-file string                     Path to a file containing the vschema to apply, in JSON form.

Options inherited from parent commands

1. --action_timeout duration   timeout to use for the command (default 1h0m0s)
2. --compact                   use compact format for otherwise verbose outputs
3. --server string             server to use for the connection (required)

SEE ALSO

  • vtctldclient - Executes a cluster management command on the remote vtctld server.