DatabaseConfig constructor

const DatabaseConfig({
  1. required DatabaseType type,
  2. String? host,
  3. int? port,
  4. String? database,
  5. String? username,
  6. String? password,
  7. String? filePath,
  8. bool useSSL = false,
  9. int maxConnections = 10,
  10. Duration connectionTimeout = const Duration(seconds: 30),
  11. Map<String, dynamic>? additionalParams,
})

Implementation

const DatabaseConfig({
  required this.type,
  this.host,
  this.port,
  this.database,
  this.username,
  this.password,
  this.filePath,
  this.useSSL = false,
  this.maxConnections = 10,
  this.connectionTimeout = const Duration(seconds: 30),
  this.additionalParams,
});