How to create an SQLite database in node.js
2 min readFeb 7, 2021
This was originally posted on atdatabases.org
SQLite is a great database for embedded use cases. e.g. if you are using node.js in IOT, or an Electron app.
To get started, install @databases/sqlite
using either yarn or npm:
yarn install @databases/sqlite
or
npm install @databases/sqlite
Then you can import
it (if you are using TypeScript/Babel/some other environment that supports ESModules) or require
it (if you are using plain…