Documentation
¶
Overview ¶
Package mysql implements a verify.Verifier for MySQL using the go-sql-driver/mysql driver via database/sql. It provides best-effort type refinement via ColumnTypes().DatabaseTypeName() and Nullable().
Origin limitation ¶
MySQL's standard database/sql driver does not expose the origin table/column for a result column (the protocol's org_table/org_name fields are not surfaced by go-sql-driver/mysql via the ColumnType interface). Consequently, MySQL verification is type-only: verify.Column carries DeclType (the DB-reported type name, e.g. "INT", "VARCHAR") but TableName and OriginName are always empty. The overlay's UseDeclType path then refines expression/aggregate columns from DeclType.
Validity (prepare errors) is still surfaced as SeverityError diagnostics.
Integration tests ¶
The live connect/prepare path is skipped when DB_CATALYST_VERIFY_DSN is unset. The core mapping logic (columnTypeToColumn, columnTypesToColumns) is fully unit-tested with constructed fakes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.