A MySQL connection library specifically designed for the crystal-node framework (version 1.0.11). This package provides a thin wrapper around mysql2 with connection pooling and basic CRUD operations tailored to crystal-node's ORM-style usage. It is tightly coupled to crystal-node and not intended for general use outside that ecosystem. Development appears slow with no recent updates.
npm install crystal-node-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the library with a mysql2 pool and runs a simple query.
Use generic mysql2 if not using crystal-node.
Replace with mysql2 and adjust code.
Update code to use async/await or .then() instead of callbacks.
Run `npm install crystal-node-mysql` and ensure correct import path.
Call `mysql.init(pool)` with a valid mysql2 pool first.
Check DB_HOST environment variable or connection config.