postgleam/config
Types
Connection configuration for PostgreSQL
pub type Config {
Config(
host: String,
port: Int,
database: String,
username: String,
password: String,
timeout: Int,
connect_timeout: Int,
extra_parameters: List(#(String, String)),
ssl: SslMode,
)
}
Constructors
-
Config( host: String, port: Int, database: String, username: String, password: String, timeout: Int, connect_timeout: Int, extra_parameters: List(#(String, String)), ssl: SslMode, )
SSL connection mode
pub type SslMode {
SslDisabled
SslVerified
SslUnverified
}
Constructors
-
SslDisabledNo SSL (plain TCP)
-
SslVerifiedSSL required, verify server certificate (uses system CA store + SNI)
-
SslUnverifiedSSL required, skip certificate verification (for Neon, self-signed certs)