tooling library

CLI-facing adapter seam for the Basalt Dart ORM.

A third entrypoint of package:basalt, kept separate from package:basalt/basalt.dart so runtime users don't pull in tooling types. Backend packages implement BasaltAdapter (and expose it as a top-level const adapter in their lib/adapter.dart); the basalt CLI consumes it to open connections, reset databases, and resolve generate-schema type presets (SchemaTypeOverrides/TypeOverride).

Classes

BasaltAdapter CLI Adapters & Tooling
A database backend plugged into the basalt CLI.
SchemaTypeOverrides CLI Adapters & Tooling
Column-type customization for generate-schema, from the types: block of basalt.yaml (parsed by SchemaTypeOverridesParser) and/or a backend adapter's presets.
SchemaTypeOverridesParser CLI Adapters & Tooling
Parses the types: block of basalt.yaml into SchemaTypeOverrides.
TypeOverride CLI Adapters & Tooling
One resolved column-type override for generate-schema: the exact Dart type and SqlType constructor expression to emit, plus an optional import the generated file needs for a custom symbol.

Functions

normalizeNativeType(String raw) String CLI Adapters & Tooling
Normalizes a native type string for matching: trims, lowercases and collapses internal whitespace (so timestamp with time zone matches timestamp with time zone).