MySQL driver for the Blockbase framework, version 1.0.4. Provides ORM-like model methods (read, save, update, delete) and raw query execution with connection pooling. Tightly integrated with Blockbase's dependency injection: accessed via app.drivers.mysql or automatically bound to models. Requires the npm mysql package. Maintenance cadence is low; last release stable. Differentiator: seamless integration with Blockbase's MVC structure, but tightly coupled and not usable standalone without the framework.
npm install blockbase-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows configuration for MySQL driver and basic usage of raw query execution within a Blockbase controller.
Use the driver via app.drivers.mysql after properly initializing Blockbase with configuration. Do not require directly.
Update code to use async/await and .execute() instead of .query() callbacks.
Use this.client.execute() to run queries within a model class extending Blockbase's Model.
Replace all .query() calls with .execute().
Add async/await or .then() to all database calls.
Access the driver through the Blockbase app instance: const mysql = app.drivers.mysql;
Run npm install blockbase-mysql and ensure the Blockbase framework is properly initialized with the driver configuration.
Start MySQL server or update the mysql configuration in your Blockbase config file.