generate
Generate SchemaHero table manifests from a running database instance. This is useful when migrating to SchemaHero.
Usage
kubectl schemahero generate
Flag | Type | Description |
---|---|---|
--dbname |
string | The name of the database to write in the YAML manifests |
--driver |
string | The database driver to connect with. Must be postgres , mysql , or cockroachdb |
--output-dir |
string | The directory to write the generated table manifests into |
--uri |
string | The database URI to connect to. Must be accessible from the workstation running the command |
-h , --help |
help for install |
In addition to the flags documented above, this command accepts all shared flags.