MCPcopy
hub / github.com/sqlc-dev/sqlc / ColumnExists

Function ColumnExists

internal/sql/sqlerr/errors.go:34–40  ·  view source on GitHub ↗
(rel, col string)

Source from the content-addressed store, hash-verified

32}
33
34func ColumnExists(rel, col string) *Error {
35 return &Error{
36 Err: Exists,
37 Code: "42701",
38 Message: fmt.Sprintf("column %q of relation %q", col, rel),
39 }
40}
41
42func ColumnNotFound(rel, col string) *Error {
43 return &Error{

Callers 3

addColumnMethod · 0.92
renameColumnMethod · 0.92
TestUpdateErrorsFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestUpdateErrorsFunction · 0.74