MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / constructor

Method constructor

lib/interfaces/database.ts:26–35  ·  view source on GitHub ↗
(
    { connectNow = false, throwOnConnectionError = false }: { connectNow?: boolean; throwOnConnectionError?: boolean } =
      {},
  )

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

connectToPostgresMethod · 0.95

Tested by

no test coverage detected