dbschema/schema.go

29 lines
400 B
Go
Raw Permalink Normal View History

2023-08-01 17:10:35 +02:00
package dbschema
import (
// External
_ "github.com/lib/pq"
// Standard
"database/sql"
)
type Upgrader struct {
databases map[string]Database
logCallback func(string, string)
sqlCallback func(string, int) ([]byte, bool)
}
type Database struct {
Host string
Port int
DbName string
Username string
Password string
db *sql.DB
upgrader *Upgrader
2023-08-01 17:10:35 +02:00
}
// vim: foldmethod=marker