Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgreSQLConfig ¶
type PostgreSQLConfig struct {
// contains filtered or unexported fields
}
PostgreSQLConfig is a configuration for PostgreSQL, can be used to generate DSN by FormatDSN method.
Please visit the follow links for more information: - https://pkg.go.dev/github.com/lib/pq#hdr-Connection_String_Parameters - https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING - https://www.postgresql.org/docs/current/runtime-config-client.html
func (*PostgreSQLConfig) FormatDSN ¶
func (p *PostgreSQLConfig) FormatDSN() string
FormatDSN generates formatted DSN string from PostgreSQLConfig.
Click to show internal directories.
Click to hide internal directories.