MCPcopy Create free account
hub / github.com/subquery/subql / postgresCACert

Method postgresCACert

packages/node-core/src/configure/NodeConfig.ts:308–318  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

306 }
307
308 get postgresCACert(): string | undefined {
309 if (!this._config.pgCa) {
310 return undefined;
311 }
312 try {
313 return getFileContent(this._config.pgCa, 'postgres ca cert');
314 } catch (e: any) {
315 logger.error(e, 'Unable to get postges CA Cert');
316 throw e;
317 }
318 }
319
320 get postgresClientKey(): string | undefined {
321 if (!this._config.pgKey) {

Callers

nothing calls this directly

Calls 2

getFileContentFunction · 0.90
errorMethod · 0.45

Tested by

no test coverage detected