ofDefinition static method

String ofDefinition(
  1. Column definition
)

Convert Column to SQLite data types

Implementation

static String ofDefinition(Column definition) {
  switch (definition) {
    case Column.bigint:
      return 'BIGINT';
    case Column.boolean:
      return 'BOOLEAN';
    case Column.blob:
      return 'BLOB';
    case Column.date:
      return 'DATE';
    case Column.datetime:
      return 'DATETIME';
    case Column.Double:
    case Column.num:
      return 'DOUBLE';
    case Column.integer:
      return 'INTEGER';
    case Column.float:
      return 'FLOAT';
    case Column.text:
      return 'TEXT';
    case Column.varchar:
      return 'VARCHAR';
    default:
      return throw ArgumentError('$definition not found in Column');
  }
}