PgEndpoint constructor
PgEndpoint({})
timeZone
= default = TimeZoneSettings('UTC') | String 'UTC'
Implementation
PgEndpoint({
required this.host,
this.port = 5432,
required this.database,
this.username,
this.password,
this.requireSsl = false,
this.isUnixSocket = false,
this.allowCleartextPassword = false,
this.encoding = utf8,
Object timeZone = 'UTC',
}){
if (timeZone is String) {
this.timeZone = TimeZoneSettings(timeZone);
} else if (timeZone is TimeZoneSettings) {
this.timeZone = timeZone;
}
}