Skip to content

Commit

Permalink
readme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
covrom committed Sep 1, 2021
1 parent 521a380 commit 414739f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,35 @@ Example of generated plantuml:
### Usage

Save database schema to yaml schema or PlantUML:

`goerd -from "postgres://username:password@url:port/dbName" -to ./schema1.yaml`

`goerd -from "postgres://username:password@url:port/dbName" -to ./schema1.puml`

Print SQL queries migration between two schemas, dropping queries is commented out:

`goerd -from schema1.yml -to schema2.yaml`

`goerd -from schema1.yml -to "postgres://username:password@url:port/dbName"`

With dropping queries:

`goerd -drop -from schema1.yml -to schema2.yml`

`goerd -drop -from schema1.yml -to "postgres://username:password@url:port/dbName"`

Save PlantUML from schema:

`goerd -from schema1.yml -to schema1.puml`

`goerd -from "postgres://username:password@url:port/dbName" -to schema1.puml`

Apply schema from yaml to database:

`goerd -c apply -from schema1.yml -to "postgres://username:password@url:port/dbName"`

Apply schema from DB1 to DB2:

`goerd -c apply -from "postgres://username:password@url:port/DB1" -to "postgres://username:password@url:port/DB2"`


Expand Down

0 comments on commit 414739f

Please sign in to comment.