Registry / database / abbott-mysql

abbott-mysql

JSON →
library1.0.55jsnpmunverified

abbott-mysql is a minimal MySQL client library version 1.0.55. The package provides a simple wrapper around the mysql module for Node.js, offering basic CRUD operations. It has an unknown release cadence and lacks documentation or community support. Compared to full-featured alternatives like mysql2 or knex, it is extremely bare-bones and likely generated from a boilerplate. The GitHub repository shows a standard Gitee template with no substantive README, indicating it may be experimental or incomplete.

npm install abbott-mysql
INSTALL
IMPORT
SIG · ABBOTT-MYSQL
A
abbott-mysql
databasejavascriptv1.0.55
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
import abbott from 'abbott-mysql'
const abbott = require('abbott-mysql')
The package may not export a CommonJS module; use ESM imports.
pool
import { pool } from 'abbott-mysql'
const { pool } = require('abbott-mysql')
Named export structure not guaranteed; check package exports.
query
import { query } from 'abbott-mysql'
abbott.query(...) // if default import is not used
The package may export query as a function or as a method on default export.

Basic usage: create a new abbott instance, connect to MySQL, and run a SELECT query.

import abbott from 'abbott-mysql'; const config = { host: 'localhost', user: 'root', password: 'password', database: 'test' }; const db = new abbott(config); db.query('SELECT * FROM users', (err, results) => { if (err) throw err; console.log(results); });
Debug
Known issues
gotchaNo type definitions shipped; TypeScript usage unsupported without @types/abbott-mysql
fix
Import using plain JavaScript or create your own .d.ts file.
affects: *
gotchaConnection configuration object keys may not match mysql2; uses mysql package format
fix
Check the mysql npm package documentation for configuration options.
affects: *
deprecatedPackage may rely on callback-style API; Promises not natively supported
fix
Wrap calls in promisify or switch to mysql2/promise.
affects: 1.x
breakingVersion 1.0.55 may have breaking changes from earlier 1.x releases
fix
Lock to a specific version and review changelog (if available).
affects: >=1.0.0 <1.0.55
Errors
Common errors & fixes
TypeError: abbott is not a constructor
Importing the default export incorrectly; package may export a function or an object not a class.
fix
Check package exports: import { createConnection } from 'abbott-mysql' or use new abbott.default(config).
Cannot find module 'abbott-mysql'
Package not installed or npm/node_modules path issue.
fix
Run 'npm install abbott-mysql' or ensure it's in package.json dependencies.
Upgrade
Version history
1.0.55latest on npm
Audit
Dependencies
mysqlrequiredCore dependency for MySQL connectivity
Agent activity
53 hits · last 30 days
node
44
OpenAI (training)
1
Resources
abbott-mysql — npm install abbott-mysql · libregistry