fromDartPrimitive static method

Column fromDartPrimitive(
  1. Type type
)

Convert native Dart to Column

Implementation

static Column fromDartPrimitive(Type type) {
  switch (type) {
    case bool:
      return Column.boolean;
    case DateTime:
      return Column.datetime;
    case double:
      return Column.Double;
    case int:
      return Column.integer;
    case num:
      return Column.num;
    case String:
      return Column.varchar;
    default:
      return throw ArgumentError('$type not associated with a Column');
  }
}