Service for interfacing with MySQL or MariaDB databases within the Okanjo App ecosystem. Current stable version is 5.0.1, released with breaking changes including dropping MySQL 5.7 support, port numbers must be numeric, and updated dependencies. Provides MySQLService/MariaDBService for direct SQL queries and CrudService/MariaDBCrudService/CollectionCrudService for ORM-like CRUD operations. Requires okanjo-app >=3 as peer dependency. Regular releases with documented breaking changes.
npm install okanjo-app-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to instantiate MySQLService with configuration and run a simple SQL query with callback.
Update code to use new method names and numeric ports. For MySQL 5.7 use MariaDB service or stay on v4.
Rename references from service.database to service.schema and remove underscore from private methods.
Update all query calls and use session instead of connection. See migration guide.
Update callback usage and migrate to Promise async/await if needed.
Install peer dependency: npm install okanjo-app
npm install okanjo-app
Ensure port is a number, e.g., parseInt(process.env.DB_PORT ?? '3306')
Check import: const { MySQLService } = require('okanjo-app-mysql'); and instantiate with valid app instance.Update callback signature to (err, response) and use response.results and response.fields.