{"library":"sand-mysql","type":"library","category":null,"description":"MySQL wrapper for Sand.js applications providing convenience functions like autoloading config, automatic connection cleanup, and promise-based querying. Current version 2.2.6 (stable, no recent updates). Wraps node-mysql with built-in query, selectOne, insert, and update builders. Automatically attaches to sand.ctx.mysql when sand-http is loaded, managing connection lifecycle per request. Config via config/mysql.js file. Key differentiator: tight Sand.js integration with automatic context injection; no direct MySQL driver usage—user relies on sand infrastructure.","language":"javascript","status":"maintenance","version":"2.2.6","tags":["javascript","sand","grain","mysql"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install sand-mysql","imports":["// No explicit import needed; grain is auto-loaded when sand-mysql is installed and required by sand","const conn = sand.mysql.createConnection(config);","sand.ctx.mysql.query('SELECT * FROM users', []).then(rows => ...);"]},{"cmd":"yarn add sand-mysql","imports":[]},{"cmd":"pnpm add sand-mysql","imports":[]}],"homepage":"https://github.com/sandjs/mysql","github":"https://github.com/sandjs/mysql","docs":null,"changelog":null,"pypi":null,"npm":"sand-mysql","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}