(error: unknown)
| 27 | * Normalizes common Drizzle / `postgres` driver shapes and walks `cause` chains. |
| 28 | */ |
| 29 | export function getPostgresErrorCode(error: unknown): string | undefined { |
| 30 | return readPgErrorField(error, 'code') |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Returns the name of the PostgreSQL constraint that triggered the error (e.g. the unique index |
no test coverage detected