Connecting to SQLite using Node.js
The sqlite3 package includes all of the functionality you need to access and work with SQLite databases in Node.js. Before you can do this, however, you must install the sqlite3 package on your account. To do this, follow these steps:- Log in to your account using SSH.
-
Type the following commands:
Code sample
After you install the sqlite3 package, you are ready to work with SQLite databases and manipulate data in them. The following sample Node.js code demonstrates how to do this:More information
- For more information about the sqlite3 package, please visit https://www.npmjs.com/package/sqlite3.
- For more information about the sqlite3 API, please visit https://github.com/TryGhost/node-sqlite3/wiki/API.