MCPcopy Create free account
hub / github.com/shabados/database / initialiseDatabase

Function initialiseDatabase

lib/build-database.js:93–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 * Creates the database tables using the schema.
92 */
93const initialiseDatabase = async () => {
94 console.log( 'Creating tables\n'.subheader )
95 await createSchema( knex )
96 console.log( 'Created tables successfully'.success )
97}
98
99/**
100 * Imports any simple tables into the database.

Callers 1

mainFunction · 0.85

Calls 1

createSchemaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…