Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

full support defaults of go.avito.ru/gl/psql #20

Closed
kamilsk opened this issue Jun 26, 2019 · 1 comment
Closed

full support defaults of go.avito.ru/gl/psql #20

kamilsk opened this issue Jun 26, 2019 · 1 comment
Assignees
Milestone

Comments

@kamilsk
Copy link
Owner

kamilsk commented Jun 26, 2019

ParseEnvLibpq currently recognizes the following environment variables:
PGHOST
PGPORT
PGDATABASE
PGUSER
PGPASSWORD
PGSSLMODE
PGSSLCERT
PGSSLKEY
PGSSLROOTCERT
PGAPPNAME
PGCONNECT_TIMEOUT
type Options struct {
	host                 string
	port                 int
	user                 string
	password             string
	dbName               string
	sslMode              string
	Logger               pgx.Logger
	LogLevel             pgx.LogLevel
	Dial                 pgx.DialFunc
	RuntimeParams        map[string]string                         // Run-time parameters to set on connection as session default values (e.g. search_path or application_name)
	OnNotice             pgx.NoticeHandler                         // Callback function called when a notice response is received.
	CustomConnInfo       func(*pgx.Conn) (*pgtype.ConnInfo, error) // Callback function to implement connection strategies for different backends. crate, pgbouncer, pgpool, etc.
	CustomCancel         func(*pgx.Conn) error                     // Callback function used to override cancellation behavior
	preferSimpleProtocol bool
}

var defaultOptions = Options{
	sslMode:              "disable",
	preferSimpleProtocol: true,
}
@kamilsk kamilsk self-assigned this Jun 26, 2019
@kamilsk kamilsk added this to To do in Minimum viable product via automation Jun 26, 2019
@kamilsk kamilsk added this to the lift 1.0 milestone Jun 26, 2019
@kamilsk
Copy link
Owner Author

kamilsk commented Sep 5, 2020

won't do cause the main target of the tool is changed

@kamilsk kamilsk closed this as completed Sep 5, 2020
Minimum viable product automation moved this from To do to Done Sep 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

No branches or pull requests

1 participant