Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureTimezone ¶ added in v3.3.0
func ConfigureTimezone(conf *pgx.ConnConfig) []stdlib.OptionOpenDB
ConfigureTimezone returns stdlib.OptionOpenDB options that configure the connection to use the timezone specified in conf.RuntimeParams["timezone"]. This ensures that timestamp values are correctly converted to the specified timezone when scanning. The timezone is automatically populated by pgx.ParseConfig when parsing DSN.
Types ¶
Click to show internal directories.
Click to hide internal directories.