Removed dsn from generator
This commit is contained in:
parent
9bc090b7a3
commit
db6ad04024
2 changed files with 2 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ func GenerateDSN(dsn, destDir string, templates ...template.Template) (err error
|
||||||
}
|
}
|
||||||
|
|
||||||
func openConnection(connectionString string) *sql.DB {
|
func openConnection(connectionString string) *sql.DB {
|
||||||
fmt.Println("Connecting to MySQL database: " + connectionString)
|
fmt.Println("Connecting to MySQL database")
|
||||||
db, err := sql.Open("mysql", connectionString)
|
db, err := sql.Open("mysql", connectionString)
|
||||||
throw.OnError(err)
|
throw.OnError(err)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ func GenerateDSN(dsn, schema, destDir string, templates ...template.Template) (e
|
||||||
}
|
}
|
||||||
|
|
||||||
func openConnection(dsn string) *sql.DB {
|
func openConnection(dsn string) *sql.DB {
|
||||||
fmt.Printf("Connecting to postgres database: %v...", dsn[:15])
|
fmt.Printf("Connecting to postgres database")
|
||||||
|
|
||||||
db, err := sql.Open("postgres", dsn)
|
db, err := sql.Open("postgres", dsn)
|
||||||
throw.OnError(err)
|
throw.OnError(err)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue