A lightweight Node.js MySQL wrapper built on mysql2, providing simple CRUD operations (insert, update, select, deleteDocuments) with a custom WHERE syntax. Version 1.10.8 is current; release cadence is sporadic. Key differentiators include auto-generated UUID primary keys and a structured where object/array format. Minimal overhead but limited community support and documentation.
npm install sito-node-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows connection initialization, insert, and select operations with mysql2 backend.
Do not include 'id' in attributes unless you intend to set it manually.
Follow the documented object shape; for multiple conditions use an array with 'logic' field.
Ensure connection.init() is called with valid MySQL credentials before calling other functions.
Use: const { connection } = require('sito-node-mysql'); connection.init({...});Run: npm install mysql2
Use: const { insert } = require('sito-node-mysql');