A TypeScript-based query builder for MySQL and MariaDB, version 3.3.0. It provides a fluent API for constructing SQL queries with type safety. The package is actively maintained with periodic updates. Key differentiators include full TypeScript support with type inference for query results and compatibility with the mariadb driver. It supports SELECT, INSERT, UPDATE, DELETE, JOINs, subqueries, and raw expressions. Ideal for projects using MySQL or MariaDB in a Node.js TypeScript environment.
npm install query-builder-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a QueryBuilder instance, builds a SELECT query with a WHERE clause and ORDER BY, then outputs the SQL string.
Always call .build() at the end of the query chain.
Use parameterized values via .where() or .set() methods instead of string concatenation.
Install mariadb: npm install mariadb
Run 'npm install query-builder-mysql' and ensure import statement is correct.
Use 'import { QueryBuilder } from 'query-builder-mysql' instead of default import.Install mariadb: npm install mariadb