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

Function RelationExists

internal/sql/sqlerr/errors.go:50–56  ·  view source on GitHub ↗
(rel string)

Source from the content-addressed store, hash-verified

48}
49
50func RelationExists(rel string) *Error {
51 return &Error{
52 Err: Exists,
53 Code: "42P07",
54 Message: fmt.Sprintf("relation %q", rel),
55 }
56}
57
58func RelationNotFound(rel string) *Error {
59 return &Error{

Callers 11

alterTableSetSchemaMethod · 0.92
createTableMethod · 0.92
renameTableMethod · 0.92
createTableAsMethod · 0.92
createEnumMethod · 0.92
createCompositeTypeMethod · 0.92
alterTypeSetSchemaMethod · 0.92
renameTypeMethod · 0.92
createFunctionMethod · 0.92
createViewMethod · 0.92
TestUpdateErrorsFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestUpdateErrorsFunction · 0.74