From 75448e725e47e0e853f3e1365234afb11e581c6a Mon Sep 17 00:00:00 2001 From: wellwelwel <46850407+wellwelwel@users.noreply.github.com> Date: Tue, 10 Feb 2026 05:42:46 -0300 Subject: [PATCH] docs: add `mysqljs/mysql` and `MySQL2` instructions --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 13a93bf..d899928 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,34 @@ deno add npm:sql-escaper --- +### [MySQL2](https://github.com/sidorares/node-mysql2) + +🚧 For **MySQL2**, it already uses **SQL Escaper** as its default escaping library since version `3.17.0`, so you just need to update it to the latest version: + +```bash +npm i mysql2@latest # soon +``` + +- Check the progress migration in [sidorares/node-mysql2#4054](https://github.com/sidorares/node-mysql2/pull/4054). + +### [mysqljs/mysql](https://github.com/mysqljs/mysql) + +You can use an overrides in your _package.json_: + +```json +"dependencies": { + "mysql": "^2.18.1" +}, +"overrides": { + "sqlstring": "npm:sql-escaper" +} +``` + +- Next, clean the `node_modules` and reinstall the dependencies (`npm i`). +- Please, note the minimum supported version of **Node.js** is `12`. + +--- + ## Usage ### Quickstart