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

Method postgresClientKey

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

Source from the content-addressed store, hash-verified

318 }
319
320 get postgresClientKey(): string | undefined {
321 if (!this._config.pgKey) {
322 return undefined;
323 }
324
325 try {
326 return getFileContent(this._config.pgKey, 'postgres client key');
327 } catch (e: any) {
328 logger.error(e, 'Unable to get postgres client key');
329 throw e;
330 }
331 }
332
333 get postgresClientCert(): string | undefined {
334 if (!this._config.pgCert) {

Callers

nothing calls this directly

Calls 2

getFileContentFunction · 0.90
errorMethod · 0.45

Tested by

no test coverage detected