mirror of
https://git.gibonuddevalla.se/go/dbschema.git
synced 2025-12-05 21:31:14 +01:00
Add a database instance without using connection details
This commit is contained in:
parent
b83c7b1e17
commit
825cf0fc9a
2 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue