package
0.16.1
Repository: https://github.com/ssh2go/atlas-app-toolkit.git
Documentation: pkg.go.dev

# Functions

CondCodeEq function returns a condition function that matches a particular constraint code.
CondConstraintEq function returns a condition function that matches a particular constraint name.
CondPQ function returns a condition function that matches standard lib/pq error.
NewForeignKeyMapping function returns a mapping function that performs mapping of a constraint name (c) to specific foreign key message with user-friendly referencing (t1) and referenced (t2) table names provided.
NewNotNullMapping function returns a mapping function that performs mapping of a constraint name (c) to specific not-null violation error message with user-friendly table (t) name and column (col) name provided.
NewRestrictMapping function returns a mapping function that performs mapping of a constraint name (c) to specific restrict violation error message with user-friendly referencing (t1) and referenced (t2) table names provided.
NewUniqueMapping function returns a mapping function that performs mapping of a constraint name (c) to a specific unique violation error message with user-friendly table name (t) and column (col) name provided.
ToMapFunc function converts mapping function for *pq.Error to a conventional MapFunc from atlas-app-toolkit/errors package.