Add a database instance without using connection details

This commit is contained in:
Magnus Åhall 2025-09-18 19:45:29 +02:00
parent b83c7b1e17
commit 825cf0fc9a
2 changed files with 8 additions and 0 deletions

View file

@ -145,6 +145,10 @@ func (upgrader Upgrader) AddDatabase(host string, port int, dbName, user, pass s
err = db.verifySchemaEntry()
return
}// }}}
func (upgrader Upgrader) AddDatabaseInstance(sqlDB *sql.DB) (db Database, err error) {// {{{
return databaseFromInstance(sqlDB)
}// }}}
// Run executes the actual schema updates until there are no more available.
func (upgrader Upgrader) Run() (err error) {// {{{
var version int