Murmuration is a low-level database library providing statement generation, transactions, and migrations. It serves as a lightweight alternative to ORMs like Sequelize or TypeORM, focusing on minimal, dynamic query building with a promise-like syntax. The base package (v2.0.80) is abstract and intended to be extended by specific implementations: Murmuration-MariaDB and Murmuration-PostGreSQL. Key differentiators include its use of operations to wrap transactions and its built-in migration support that synchronizes the database schema during deployment. It deliberately avoids abstractions like models or query builders, giving developers direct control over SQL.
npm install murmurationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates building a query dynamically with using(), where(), one(), else(), catch(), and execute().
Replace .end() with .execute() on statement chains.
Change const Murmuration = require('murmuration') to const { Statement } = require('murmuration').Install the appropriate database-specific package: npm install murmuration-mariadb or npm install murmuration-postgresql.
Create a using.js file that imports and extends Statement with your database driver's execute method.
Use a raw query method or extend Statement to support custom conditions.
Refactor migration files to export { up: async (connection) => { ... }, down: async (connection) => { ... } }.Run `npm install murmuration-mariadb` or `npm install murmuration-postgresql` and import from that package instead.
Define a local `using` function by extending the Statement class. Example: const { Statement } = require('murmuration'); const using = (connection) => new Statement(connection);Create a using function that extends Statement with your database schema's methods, or use a package like murmuration-mariadb that provides them.
No dependency data recorded yet.