Streamlined MySQL query builder for Node.js (v0.9.3, last updated 2015). Provides a fluent API for SELECT, INSERT, UPDATE, DELETE with chaining, nested WHERE grouping, and aggregate functions (count, sum, min, max). Includes .set() for conditional SET overrides and .values() for additional INSERT rows. Breaking change in 0.9.0: stringify() no longer auto-wraps arrays in parentheses. Unmaintained, no security updates, no TypeScript support. Key differentiator: extremely lightweight, zero dependencies, simple API.
npm install monologueNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates SELECT with WHERE, BETWEEN, ORDER, LIMIT; INSERT with single object; UPDATE with conditional SET using .set().
Use .stringify([1,2,3]) → '(1,2,3)' manually.
Migrate to an actively maintained query builder (e.g., knex.js).
Be aware that .where() and .and() calls are reordered internally.
Always escape or parameterize user input before passing to Monologue methods.
Use monologue().select('*', 'table') — always call monologue() first to create an instance.Chain .sql() to get the final SQL string: monologue().select('*', 'table').sql()Sanitize inputs or use the correct method signature (e.g., .count('field') instead of .count('*') which was removed in 0.9.2).No dependency data recorded yet.