MCPcopy Create free account
hub / github.com/PostHog/duckgres / SQLState

Method SQLState

controlplane/provisioning/api.go:26–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24// handler so callers see a clear "your input conflicts with existing state"
25// rather than a generic 500.
26func isUniqueViolation(err error) bool {
27 return configstore.IsUniqueViolationErr(err)
28}
29

Callers 6

isUniqueViolationFunction · 0.95
sqlStateFunction · 0.65
transformErrSQLStateFunction · 0.65
transformErrorSQLStateFunction · 0.65

Implementers 1

CodedErrortranspiler/transform/errors.go

Calls

no outgoing calls

Tested by 4

sqlStateFunction · 0.52
transformErrSQLStateFunction · 0.52