MySQL extension for the SQL Bricks query builder library. Provides MySQL-specific features such as proper date conversion, correct escaping of MySQL reserved words, and support for LIMIT/OFFSET clauses. Compatible with Node.js >=5.0.0. Current version 0.1.4. Lightweight and minimal alternative to larger ORMs.
npm install sql-bricks-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic SELECT with LIMIT and INSERT with automatic date conversion using sql-bricks-mysql.
Always call .limit() before .offset() to ensure correct syntax.
Upgrade Node.js to version 5.0.0 or higher.
Only use this extension for MySQL databases.
Ensure date values are JavaScript Date objects, not strings.
Only chain .limit() and .offset() on SELECT queries.
Replace require('sql-bricks') with require('sql-bricks-mysql').Reorder methods: .limit(10).offset(5) instead of .offset(5).limit(10).
Add const sql = require('sql-bricks-mysql'); at the top of your file.Use new Date('2024-01-01') instead of '2024-01-01'.