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:
parent
bc35f40f9e
commit
a7d08500f5
9 changed files with 174 additions and 92 deletions
models
|
@ -4,5 +4,5 @@ import (
|
|||
"embed"
|
||||
)
|
||||
|
||||
//go:embed *.sql
|
||||
//go:embed *.psql
|
||||
var FS embed.FS
|
||||
|
|
|
@ -9,9 +9,8 @@ import (
|
|||
|
||||
type Feed struct {
|
||||
ID uuid.UUID // PRIMARY KEY
|
||||
Slug string // NOT NULL UNIQUE
|
||||
Title string // NOT NULL UNIQUE
|
||||
URI string // NOT NULL
|
||||
AutoRefresh bool // NOT NULL
|
||||
RefreshInterval int //
|
||||
NextRefresh time.Time // NOT NULL
|
||||
Expire bool // NOT NULL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue