{"library":"sync-mysql","type":"library","category":null,"description":"sync-mysql is a Node.js library that provides a synchronous interface for interacting with MySQL databases. Unlike most Node.js database drivers which are asynchronous and non-blocking, this package executes SQL queries in a blocking manner, making it suitable for simple scripts, command-line tools, initial setup routines, or test environments where blocking the event loop is acceptable or desired, rather than high-concurrency server applications. The current stable version is 3.0.1, published in late 2022. The release cadence is very slow, with significant gaps between major versions, suggesting a maintenance-only status. Its key differentiator is its synchronous API, which simplifies sequential database operations at the cost of Node.js's typical non-blocking benefits.","language":"javascript","status":"maintenance","version":"3.0.1","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install sync-mysql","imports":["const MySql = require('sync-mysql');","connection.query('SELECT 1')","const record = connection.getRecord('users', 1);"]},{"cmd":"yarn add sync-mysql","imports":[]},{"cmd":"pnpm add sync-mysql","imports":[]}],"homepage":null,"github":"https://github.com/ForbesLindesay/sync-mysql","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/sync-mysql","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/sync-mysql/compatibility"}}