CreateIndexStmt constructor

CreateIndexStmt(
  1. String indexName,
  2. String table,
  3. String column, {
  4. bool unique = false,
  5. String? whereSql,
  6. String? exprSql,
  7. List<String>? columns,
  8. List<String>? collations,
})

Implementation

CreateIndexStmt(
  this.indexName,
  this.table,
  this.column, {
  this.unique = false,
  this.whereSql,
  this.exprSql,
  List<String>? columns,
  List<String>? collations,
}) : columns = columns ?? [column],
     collations =
         collations ??
         List<String>.filled((columns ?? [column]).length, 'BINARY');