Registry / database / impresser-mysql-storage

impresser-mysql-storage

JSON →
library0.1.6jsnpmunverified

A MySQL storage backend for the Impresser presentation engine, version 0.1.6. Provides persistence for Impresser slide decks and presentations using MySQL. Lightweight and designed specifically to integrate with Impresser. Early-stage release with basic functionality.

npm install impresser-mysql-storage
INSTALL
IMPORT
SIG · IMPRESSER-MYSQL-ST
I
impresser-mysql-storage
databasejavascriptv0.1.6
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.

MySQLStorage
import { MySQLStorage } from 'impresser-mysql-storage'
const MySQLStorage = require('impresser-mysql-storage').default
Package is ESM-only. Named export.

Initializes MySQLStorage, connects to MySQL, retrieves all presentations.

import { MySQLStorage } from 'impresser-mysql-storage'; const storage = new MySQLStorage({ host: process.env.MYSQL_HOST ?? 'localhost', user: process.env.MYSQL_USER ?? 'root', password: process.env.MYSQL_PASSWORD ?? '', database: process.env.MYSQL_DATABASE ?? 'impresser' }); await storage.initialize(); const presentations = await storage.getAllPresentations(); console.log(presentations);
Debug
Known issues
gotchaMySQLStorage is not a default export. Do not use `import MySQLStorage from 'impresser-mysql-storage'`.
fix
Use named import: `import { MySQLStorage } from 'impresser-mysql-storage'`.
affects: >=0.1.0
Errors
Common errors & fixes
Cannot find module 'impresser-mysql-storage'
Package not installed or not in node_modules.
fix
Run `npm install impresser-mysql-storage`.
Upgrade
Version history
0.1.6latest on npm
Audit
Dependencies
mysql2requiredMySQL database driver for Node.js
impresserrequiredCore Impresser engine that this storage backend integrates with
Agent activity
10 hits · last 30 days
node
10
Resources
impresser-mysql-storage — npm install impresser-mysql-storage · libregistry