Small library to work with Azure SQL and MySQL via a single interface. Based on the mssql module. Current stable version is 4.8.0. Released under MIT license. Key differentiator: provides a unified API for Azure SQL and MySQL, with connection pooling and parameterized queries. Well-suited for projects requiring both database engines without changing code. Relies on mssql for Azure SQL and mysql2 for MySQL.
npm install imago-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Connects to Azure SQL using connection string and fetches all rows from a table.
Use sql.db.mssql for column types.
Use await sql.connection before any query.
Update to Node.js >= 8.9 or use lower version if needed.
Pass { engine: 'mysql' } as second argument to constructor.Ensure sql is declared and accessible in the function.
Run npm install imago-sql --save
Use await sql.connection