How to use the sqlite.migrate function in sqlite

To help you get started, we’ve selected a few sqlite examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bhj / karaoke-forever / build / scripts / start.js View on Github external
async function init () {
  try {
    debug('Opening database file %s', dbPath)
    await db.open(dbPath)

    debug('Running database migrations')
    await db.migrate({
      migrationsPath,
      // force: 'last',
    })

    server.listen(project.serverPort)
    debug(`Server is now running on port ${project.serverPort}`)
  } catch (e) {
    debug(e)
    process.exit(1)
  }
}

sqlite

SQLite client for Node.js applications with SQL-based migrations API written in Typescript

MIT
Latest version published 1 year ago

Package Health Score

65 / 100
Full package analysis