MCPcopy Index your code
hub / github.com/codebymitch/TitanBot / isPostgresSqlReady

Function isPostgresSqlReady

src/utils/database.js:381–387  ·  view source on GitHub ↗
(dbWrapper)

Source from the content-addressed store, hash-verified

379}
380
381function isPostgresSqlReady(dbWrapper) {
382 return Boolean(
383 dbWrapper?.db?.pool &&
384 typeof dbWrapper.db.isAvailable === 'function' &&
385 dbWrapper.db.isAvailable(),
386 );
387}
388
389async function getEndedGiveawaysFromKv(client) {
390 const wrapper = client?.db;

Callers 2

getEndedGiveawaysFunction · 0.85
markGiveawayEndedFunction · 0.85

Calls 1

isAvailableMethod · 0.45

Tested by

no test coverage detected