Back to Explore

mysqljs/named-placeholders

GitHub
1 updates · last 90 days1 watchersOpen source

Last release: 1 month ago

A Node.js utility that compiles PDO-style named placeholders into unnamed placeholders, turning SQL like `:bar` into `?` and producing the corresponding parameter array. Useful when you want to write readable named SQL but run it with drivers that only accept unnamed placeholders.

Project status

  • Actively maintained, with recent development activity (latest upstream push on 2026-05-28) and patch updates continuing through 2026 (v1.1.7 on 2026-04-19).
  • Apparent update cadence is irregular, with v1.1.6 (2025-12-15) followed closely by v1.1.5 the same day, then the next substantive patch (v1.1.7) arriving around 4 months later (2026-04-19).

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v1.1.7

    1 month ago

    v1.1.7 is a small patch release focused on fixing a parsing edge case in the SQL placeholder compiler. It resets an internal escape state after placeholder parsing so subsequent placeholders are recognized correctly.

  • v1.1.6

    5 months ago

    Release v1.1.6 mainly updates repository metadata to reflect the correct GitHub path (mysqljs/named-placeholders). The code diff also includes standard version bumps in package.json and package-lock.json and a small test comment URL update.

  • v1.1.5

    5 months ago

    v1.1.5 primarily contains a bug fix to improve how the query parser handles mixed and nested quotes. The diff also includes substantial formatting and test/CI/tooling changes, but the only runtime logic adjustment appears to be in quote parsing state handling.

  • v1.1.4

    6 months ago

    v1.1.4 primarily addresses a dependency conflict reported in the project. It also updates the test setup to use Node's built-in test runner, removing the mocha dependency.