Documentation
¶
Overview ¶
Package sqlmask hides the text of database/sql conversion failures. It imports only momo and the standard library, so every adapter that scans through database/sql can use it without linking another driver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConversionErr ¶
ConversionErr hides the text of a database/sql conversion failure: database/sql quotes the stored value in it ("converting driver.Value type string ("...")"). c must already be classified by the driver. Only errors that look like a conversion failure are masked; cancellation, a closed Rows, a *momo.Error and errors for which isDriverErr reports true pass through. The cause stays reachable through errors.Unwrap, as with pgxdriver data exceptions. msg is the fixed text of the masked error.