(cause: unknown, message: string, type: ConnectFailureType = "other")
| 2458 | resume(Effect.fail(new SqlError({ reason }))) |
| 2459 | } |
| 2460 | const failConnect = (cause: unknown, message: string, type: ConnectFailureType = "other"): void => |
| 2461 | fail(new ConnectionError({ cause, message, operation: "connect" }), type) |
| 2462 | const failAuth = (cause: unknown, message: string): void => |
| 2463 | fail(new AuthenticationError({ cause, message, operation: "connect" }), "auth") |
| 2464 | const failErrorResponse = (fields: PgProtocol.ErrorFields, message: string): void => { |
no test coverage detected