Usage examples
This section shows the common ways to use @catbee/mysql in a Node.js or TypeScript application.
- Basic usage - Connect, query, execute, type rows, and check health
- Connection pooling - Configure pools and operation resilience
- Transactions - Commit, rollback, isolation levels, and use savepoints
- Query builder - Compose parameterized SQL fluently
- Parameters and dates - Named parameters, bulk arrays, and UTC values
- Schema migrations & bootstrap - Sequential migrations, rollbacks, and instant fresh-database bootstrap