columnInfo method

  1. @override
ColumnInfo columnInfo(
  1. Map<String, Object?> row
)
override

Normalizes a raw column row from compileColumns.

Implementation

@override
ColumnInfo columnInfo(Map<String, Object?> row) {
  final dflt = row['dflt'] as String?;
  return ColumnInfo(
    name: row['name'] as String,
    type: row['type'] as String,
    nullable: row['nullable'] == 'YES',
    defaultValue: dflt,
    autoIncrement: dflt != null && dflt.startsWith('nextval('),
  );
}