database and migrator revisions, help output, data model changes

- database:
  - moved to jackc/pgx from database/sql
  - revised migrator and moved it into it's own package
  - separated ParseConfig into it's own function
- config:
  - database config is now a DSN or URL instead of a struct
  - SearchPaths are now available through a function
- improved help / usage output
- modified data model
This commit is contained in:
fanir 2022-02-22 00:08:19 +01:00
parent bc35f40f9e
commit a7d08500f5
9 changed files with 174 additions and 92 deletions
models/migrations

View file

@ -4,5 +4,5 @@ import (
"embed"
)
//go:embed *.sql
//go:embed *.psql
var FS embed.FS