Usage
The gormite cli needs to generate migrations sql instead of writting it yourself, but it’s not migration tool
Gormite uses one of supported tools
Supported tools:
Prequirements
Create gormite.yaml where your heart desires
Paste this code here:
gormite.yaml
gormite:
orm:
mapping:
Entities:
dir: pkg/entitiesUsage
gormite -t {goose, migrate} --dsn {DATABASE_URL} --config-path {your/path/to/config}Cli flags:
| Flag | Description | Aliases | Required | Default value |
|---|---|---|---|---|
| —tool | Migration tool (backend) | -t -m -mt | true | None |
| —dsn | Database connection url, needs to calc | -d -db | true | None |
| —config-path | Path to your gormite.yaml config | -c —config | false | resources/gormite.yaml |
Last updated on