Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.
26
func
isUniqueViolation(err error) bool {
27
return
configstore.IsUniqueViolationErr(err)
28
}
29
Callers
6
isUniqueViolation
Function · 0.95
TestTranspile_FeatureNotSupported_Rejected
Function · 0.65
TestTranspile_AlterColumnTypeUsingRejected
Function · 0.65
sqlState
Function · 0.65
transformErrSQLState
Function · 0.65
transformErrorSQLState
Function · 0.65
Implementers
1
CodedError
transpiler/transform/errors.go
Calls
no outgoing calls
Tested by
4
TestTranspile_FeatureNotSupported_Rejected
Function · 0.52
TestTranspile_AlterColumnTypeUsingRejected
Function · 0.52
sqlState
Function · 0.52
transformErrSQLState
Function · 0.52