normalizeNativeType function CLI Adapters & Tooling

String normalizeNativeType(
  1. String raw
)

Normalizes a native type string for matching: trims, lowercases and collapses internal whitespace (so timestamp with time zone matches timestamp with time zone).

Implementation

String normalizeNativeType(String raw) =>
    raw.trim().toLowerCase().replaceAll(RegExp(r'\s+'), ' ');