dce-mango
Version:
Harvard DCE's Non-relational DB Wrapper.
22 lines (19 loc) • 469 B
text/typescript
// Import type
import DbState from './types/DbState';
/**
* The global state of our DB.
* @author Benedikt Arnarsson
*/
const dbState: DbState = {
// Whether the DB connection has been started (via initMango)
isInitialized: false,
// Optional version tag
schemaVersionTag: 'unversioned',
// Promise containing a list of collection names
initDB: null,
// The DB itself
db: null,
// The client connection
client: null,
};
export default dbState;