Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseOpts ¶
ParseOpts parses the options from name and adds them to the values.
The parsing code is based on conninfo_parse from libpq's fe-connect.c
func ParseURL ¶ added in v0.0.2
ParseURL converts a url to a connection string for driver.Open. Example:
"postgres://bob:secret@1.2.3.4:5432/mydb?sslmode=verify-full"
converts to:
"user=bob password=secret host=1.2.3.4 port=5432 dbname=mydb sslmode=verify-full"
A minimal example:
"postgres://"
This will be blank, causing driver.Open to use all of the defaults
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.