StartupMessage constructor

StartupMessage(
  1. String databaseName,
  2. TimeZoneSettings timeZone, {
  3. String? username,
  4. ReplicationMode replication = ReplicationMode.none,
  5. required Encoding encoding,
})

Implementation

StartupMessage(
  String databaseName,
  TimeZoneSettings timeZone, {
  String? username,
  ReplicationMode replication = ReplicationMode.none,
  required this.encoding,
})  : _databaseName = EncodedString(databaseName, encoding),
      _timeZone = EncodedString(timeZone.value, encoding),
      _username = username == null ? null : EncodedString(username, encoding),
      _replication = EncodedString(replication.value, encoding);