(
{ connectNow = false, throwOnConnectionError = false }: { connectNow?: boolean; throwOnConnectionError?: boolean } =
{},
)
| 24 | protected throwOnConnectionError?: boolean; |
| 25 | |
| 26 | constructor( |
| 27 | { connectNow = false, throwOnConnectionError = false }: { connectNow?: boolean; throwOnConnectionError?: boolean } = |
| 28 | {}, |
| 29 | ) { |
| 30 | this.throwOnConnectionError = throwOnConnectionError; |
| 31 | |
| 32 | if (connectNow) { |
| 33 | this.connectToPostgres(); |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | protected async connectToPostgres() { |
| 38 | if (this.db) { |
nothing calls this directly
no test coverage detected