A simple MySQL database utility built on the sojs framework (v0.1.6). Provides a fluent query builder for generating SQL statements programmatically with support for SELECT, INSERT, UPDATE, DELETE, JOIN, GROUP BY, HAVING, ORDER BY, LIMIT, WHERE conditions (including Django-like operators: __like, __lt, __gt, __in, etc.), nested conditions via callbacks, and transaction execution. Returns Promises for async/await usage. Release cadence is low (no recent updates). Differentiator: integrates with sojs inversion-of-control container and provides a DSL similar to Django ORM for condition building.
npm install sojs-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to require sojs, create a DB instance, build a SELECT query with conditions and ordering, and execute asynchronously.
Add require('sojs'); at the top of your application.Ensure sojs is required before any execute() calls, or convert to native Promise if needed.
Chain .orderBy() before .limit().
Always chain .execute() after constructing the query.
Add require('sojs'); at the top of your file.Use require('sojs') instead of import.Ensure MySQL is running and host/port/user/password are correct.