Registry / database / booljs-mysql

booljs-mysql

JSON →
library0.1.1jsnpmunverified

MySQL driver for the bool.js MVC framework (version 0.1.1, last released in 2015). It integrates the `mysql` npm package as a data connector for bool.js applications, allowing MySQL databases to be used with the framework's namespaced project structure. This package requires booljs-api 0.3.x as a peer dependency. It is in maintenance mode with no updates expected, and may not work with modern Node.js versions or bool.js major releases.

npm install booljs-mysql
INSTALL
IMPORT
SIG · BOOLJS-MYSQL
B
booljs-mysql
databasejavascriptv0.1.1
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.

default
const booljs = require('booljs-mysql');
import booljs from 'booljs-mysql';
This package is CommonJS-only and does not support ESM imports.

Shows how to require and instantiate the MySQL driver with connection configuration.

const booljs = require('booljs-mysql'); const { Database } = require('booljs-api'); const driver = new booljs.Driver({ host: process.env.DB_HOST ?? 'localhost', port: process.env.DB_PORT ?? 3306, user: process.env.DB_USER ?? 'root', password: process.env.DB_PASS ?? '', database: process.env.DB_NAME ?? 'test' }); driver.connect().then(() => { console.log('Connected to MySQL'); }).catch(err => { console.error('Connection failed:', err); });
Debug
Known issues
deprecatedThe package may not work with Node.js versions >= 10 due to outdated mysql library.
fix
Use an alternative driver or manually upgrade the underlying mysql dependency.
affects: <=0.1.1
gotchaThis package relies on booljs-api 0.3.x which is no longer maintained.
fix
Ensure booljs-api 0.3.x is installed as a peer dependency.
affects: >=0.1.0
Errors
Common errors & fixes
Cannot find module 'booljs-api'
Missing peer dependency booljs-api.
fix
Run: npm install booljs-api@0.3.x
TypeError: booljs.Driver is not a constructor
Incorrect import or wrong usage of the driver.
fix
Ensure you require the module and access Driver correctly: const { Driver } = require('booljs-mysql');
Upgrade
Version history
0.1.1latest on npm
Audit
Dependencies
booljs-apirequiredPeer dependency required for bool.js framework integration
Agent activity
16 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
booljs-mysql — npm install booljs-mysql · libregistry