db-action-mysql is a lightweight MySQL query builder and database action library for Node.js. Current stable version is 0.19.2. It provides a chainable API for building MySQL queries with parameterized inputs, supporting SELECT, INSERT, UPDATE, DELETE, and JOIN operations. Key differentiators include TypeScript support out of the box, minimal dependencies, and a focus on simplicity over ORM features. Releases are infrequent, focused on bug fixes.
npm install db-action-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to a MySQL database, builds a SELECT query with a WHERE clause, and logs results.
Update imports: 'import db from ...' instead of 'import { Database } from ...'.Switch to ES import syntax or use const db = require('db-action-mysql'); without .default.Always use db.select(), db.insert(), etc., which handle escaping.
Use mysql2 pool and pass pool.getConnection() to db.createConnection()?
Change to: import db from 'db-action-mysql'
Run: npm install --save db-action-mysql
Use: import db from 'db-action-mysql'; then db.select()