ConnectionSettings constructor

ConnectionSettings({
  1. String? host = 'localhost',
  2. int? port = 3306,
  3. String? user,
  4. String? password,
  5. String? db,
  6. bool? useCompression = false,
  7. bool? useSSL = false,
  8. int? maxPacketSize = 16 * 1024 * 1024,
  9. Duration timeout = const Duration(seconds: 30),
  10. int? characterSet = CharacterSet.UTF8MB4,
})

Implementation

ConnectionSettings(
    {this.host = 'localhost',
    this.port = 3306,
    this.user,
    this.password,
    this.db,
    this.useCompression = false,
    this.useSSL = false,
    this.maxPacketSize = 16 * 1024 * 1024,
    this.timeout = const Duration(seconds: 30),
    this.characterSet = CharacterSet.UTF8MB4});