Skip to main content
current (v0.1.x)

@catbee/mysql

A lightweight MySQL client for Node.js and TypeScript with safe parameters, connection pooling, transactions, query building, retry controls, middleware, and explicit UTC date utilities.

Documentation map

What the library provides

  • Safe ? parameters and named :parameter placeholders
  • Single persistent connections and pooled connections
  • Typed query and execute result envelopes
  • Automatic rollback with db.transaction()
  • Savepoints for partial rollback inside an active transaction
  • Retry, timeout, abort-signal, and strict statement controls
  • Middleware and EventEmitter lifecycle events
  • A fluent builder for common SQL statements
  • Date and time helpers that consistently use UTC