Registry / database / yumeri-plugin-sqlite

yumeri-plugin-sqlite

JSON →
library1.1.5jsnpmunverified

SQLite database plugin for Yumeri web server, version 1.1.5 (latest). Provides seamless integration of SQLite databases into Yumeri applications with async/await support and TypeScript types. It is designed exclusively for Yumeri v3 alpha and requires the Yumeri framework to function. The plugin offers a simple API for creating, reading, updating, and deleting records, leveraging SQLite as a lightweight embedded database. It is maintained as part of the Yumeri ecosystem with regular updates.

npm install yumeri-plugin-sqlite
INSTALL
IMPORT
SIG · YUMERI-PLUGIN-SQLI
Y
yumeri-plugin-sqlite
databasejavascriptv1.1.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Database
import { Database } from 'yumeri-plugin-sqlite'
import Database from 'yumeri-plugin-sqlite'
Named export, not default. ESM only.
Table
import { Table } from 'yumeri-plugin-sqlite'
const Table = require('yumeri-plugin-sqlite').Table
TypeScript types included. ESM named import.
initDatabase
import { initDatabase } from 'yumeri-plugin-sqlite'
Initialization function for setting up the database with Yumeri.

Initialize SQLite database plugin, create table, and query data.

import { Database, Table } from 'yumeri-plugin-sqlite'; import { Yumeri } from 'yumeri'; const app = new Yumeri(); app.plugin('sqlite', { filename: 'data.db' }); app.listen(3000, async () => { const db = new Database('data.db'); await db.execute('CREATE TABLE IF NOT EXISTS users (id INTEGER PRIMARY KEY, name TEXT)'); const result = await db.query('SELECT * FROM users'); console.log(result); });
Debug
Known issues
breakingRequires Yumeri version ^3.0.0-alpha.1
fix
Upgrade Yumeri to v3 alpha or later.
affects: 2.x
gotchaPlugin must be registered before any database operations
fix
Call app.plugin('sqlite') before instantiating Database.
affects: all
deprecatedThe 'filename' option is deprecated in favor of 'connectionString'
fix
Use connectionString: 'sqlite://data.db'
affects: >=1.2.0
gotchaOnly one SQLite database connection per plugin instance
fix
Use multiple Yumeri plugin instances for multiple databases.
affects: all
Errors
Common errors & fixes
TypeError: Cannot read properties of undefined (reading 'execute')
Database not initialized before calling execute
fix
Ensure app.plugin('sqlite') is called and await any async setup.
Error: Cannot find module 'sqlite3'
Missing native sqlite3 build
fix
Install optional peer dependency: npm install sqlite3
Failed to load plugin: 'sqlite' not a function
Incorrect import path
fix
Use import { Database } from 'yumeri-plugin-sqlite' and import other symbols as named exports.
Upgrade
Version history
1.1.5latest on npm
Audit
Dependencies
yumerirequiredPeer dependency: Yumeri framework required at version ^3.0.0-alpha.1
Agent activity
29 hits · last 30 days
node
24
OpenAI (training)
1
Resources
yumeri-plugin-sqlite — npm install yumeri-plugin-sqlite · libregistry