MCPcopy Create free account
hub / github.com/Effect-TS/effect / matchesSqliteCode

Function matchesSqliteCode

packages/effect/src/unstable/sql/SqlError.ts:475–476  ·  view source on GitHub ↗
(code: string, expected: string)

Source from the content-addressed store, hash-verified

473}
474
475const matchesSqliteCode = (code: string, expected: string): boolean =>
476 code === expected || code.startsWith(expected + "_")
477
478const UNKNOWN_CONSTRAINT = "unknown"
479const SQLITE_CONSTRAINT_UNIQUE = "SQLITE_CONSTRAINT_UNIQUE"

Callers 1

classifySqliteErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected