PgEndpoint constructor

PgEndpoint({
  1. required String host,
  2. int port = 5432,
  3. required String database,
  4. String? username,
  5. String? password,
  6. bool requireSsl = false,
  7. bool isUnixSocket = false,
  8. bool allowCleartextPassword = false,
  9. Encoding encoding = utf8,
  10. Object timeZone = 'UTC',
})

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;
  }
}