@node-telescope/storage-sqlite
v0.1.1
Published
SQLite storage backend for Node-Telescope using better-sqlite3
Downloads
165
Maintainers
Readme
@node-telescope/storage-sqlite
SQLite storage driver for Node Telescope.
Auto-detected by framework adapters when installed. Zero configuration needed.
Install
npm install @node-telescope/storage-sqliteUsage
When using a framework adapter (@node-telescope/express, @node-telescope/nestjs, or @node-telescope/fastify), SQLite storage is used automatically if this package is installed. Just install it and you are done:
import express from 'express';
import { telescope } from '@node-telescope/express';
const app = express();
app.use(telescope());
// SQLite database auto-created at ./telescope.sqliteExplicit usage
import { SqliteStorage } from '@node-telescope/storage-sqlite';
const storage = new SqliteStorage('./telescope.sqlite');
app.use(telescope({ storage }));Custom database path
app.use(telescope({
databasePath: './data/telescope.sqlite',
}));Documentation
See the main Node Telescope README for full documentation.
License
MIT
