createQuery method

String createQuery()

Implementation

String createQuery() {
  final uniqueSql = unique ? ' UNIQUE' : '';
  final escapedColumnNames =
      columnNames.map((columnName) => '`$columnName`').join(', ');

  return 'CREATE$uniqueSql INDEX `$name`'
      ' ON `$tableName` ($escapedColumnNames)';
}