-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initial commit #1
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix
"params": "sslmode=disable connect_timeout=60", // disable sslmode for localhost, set timeout | ||
"host": "localhost", // for unix instead of tcp use path - see driver | ||
"port": "5432", // default PSQL port | ||
//"params": "sslmode=disable connect_timeout=60", // disable sslmode for localhost, set timeout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a different way to set timeout?
@@ -69,6 +71,15 @@ func (db *PostgresqlAdapter) Open(opts map[string]string) error { | |||
fmt.Printf("Database %s opened using %s\n", db.options["db"], db.options["adapter"]) | |||
} | |||
|
|||
/*var myvartest pgtype.JSONB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove those comments.
@@ -82,3 +82,7 @@ func TimeString(t time.Time) string { | |||
} | |||
return "" | |||
} | |||
|
|||
func GetSQLDB() *sql.DB { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be done in scanRow() in query.go somehow.
No description provided.