A lightweight Node.js MySQL client that provides a fluent API for building queries, inserts, updates, and deletes. Version 1.1.6 is the latest stable release; maintenance appears irregular. It supports chaining select/where/join/groupby/orderby, paging, literal expressions, and batch operations. Differs from knex/mysql2 by offering a simpler, more concise syntax with fewer dependencies, but it is not widely adopted and has limited community support.
npm install ali-h-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a DbClient with MySQL credentials and runs a count query with a LIKE condition.
npm install ali-mysql-client
Consider using mysql2 or native ESM alternatives like knex.
Do not call .toSql() and a query method together.
Use db.literal('NOW()') explicitly for clarity.Install the correct package: npm install ali-mysql-client
Do not call .toSql() before the query execution method.
Verify host, user, password, and database in DbClient config.