Added configurable schema

This commit is contained in:
Magnus Åhall 2023-12-30 17:40:34 +01:00
parent 2cb694f534
commit 95335125d3
2 changed files with 19 additions and 11 deletions

View file

@ -29,7 +29,8 @@ import (
// An upgrader verifies the schema for one or more databases and upgrades them if possible.
type Upgrader struct {
databases map[string]Database
schema string
databases map[string]Database
logCallback func(string, string)
sqlCallback func(string, int) ([]byte, bool)
}
@ -41,7 +42,7 @@ type Database struct {
Username string
Password string
db *sql.DB
db *sql.DB
upgrader *Upgrader
}