A simple MySQL abstraction layer providing utility functions for common database operations. Current stable version is 0.0.6, with no recent releases and limited documentation. It wraps the mysql package to offer convenience methods like query, insert, update, and delete. Compared to alternatives like knex or sequelize, it is minimal and not actively maintained. Use with caution for production environments.
npm install mysql-salNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures connection, runs a simple query with parameterized input, and logs result.
Use default import: import mysqlSal from 'mysql-sal';
Consider using a maintained alternative like mysql2 or knex.
Always call mysqlSal.config() before any query/insert/update/delete.
Switch to mysql2 by replacing the mysql dependency with mysql2 and using mysql-sal with mysql2 (though compatibility not guaranteed).
Always use ? for parameters; do not manually escape inputs.
Use default import: import mysqlSal from 'mysql-sal'; then mysqlSal.config({...});Run npm install mysql-sal (ensure it is in package.json dependencies).
Start MySQL service or verify host/port credentials in config.
Call mysqlSal.config() first with valid connection details.