mirror of
https://git.gibonuddevalla.se/go/dbschema.git
synced 2025-12-05 21:31:14 +01:00
Added Publisher.Version to enable comparisons in applications using this library
This commit is contained in:
parent
d290a67800
commit
2cb694f534
2 changed files with 14 additions and 3 deletions
|
|
@ -19,11 +19,11 @@ func newDatabase(host string, port int, dbName, user, pass string) (dbase Databa
|
|||
|
||||
func (dbase Database) sqlConnString() string {// {{{
|
||||
return fmt.Sprintf(
|
||||
"postgresql://%s:%s@%s:%d/%s?sslmode=disable",
|
||||
dbase.Username,
|
||||
dbase.Password,
|
||||
"host=%s port=%d user=%s password=%s dbname=%s sslmode=disable",
|
||||
dbase.Host,
|
||||
dbase.Port,
|
||||
dbase.Username,
|
||||
dbase.Password,
|
||||
dbase.DbName,
|
||||
)
|
||||
}// }}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue