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
|
2023-08-01 19:50:27 +02:00
|
|
|
upgrader *Upgrader
|
2023-08-01 17:10:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// vim: foldmethod=marker
|