DBConfig constructor

DBConfig({
  1. required String driver,
  2. String host = 'localhost',
  3. int port = 3306,
  4. String username = 'root',
  5. String password = '',
  6. String database = 'vania',
  7. String? timezone,
  8. String? filePath,
  9. bool sslMode = false,
  10. bool openInMemorySQLite = false,
  11. String collation = 'utf8mb4_general_ci',
  12. String? schema,
  13. bool pool = false,
  14. int poolSize = 2,
})

Implementation

DBConfig({
  required this.driver,
  this.host = 'localhost',
  this.port = 3306,
  this.username = 'root',
  this.password = '',
  this.database = 'vania',
  this.timezone,
  this.filePath,
  this.sslMode = false,
  this.openInMemorySQLite = false,
  this.collation = 'utf8mb4_general_ci',
  this.schema,
  this.pool = false,
  this.poolSize = 2,
});