i just discovered this (see top answer) where they used format() for bulk query, but i can't find format anywhere in both mysql and mysql2 docs. Does anyone know where to find it?
-
2Where are you looking? This is part of the mysql Javascript API.Tim Roberts– Tim Roberts2025-10-25 02:04:03 +00:00Commented Oct 25 at 2:04
-
i was looking at both mysql and mysql2 gh readme and scanned most of the related section except the escaping query section T_T maybe i was just having a bad luck, anyways thanks!!user31750755– user317507552025-10-25 10:46:52 +00:00Commented Oct 25 at 10:46
Add a comment
|
1 Answer
In mysqljs repo readme they say
As mysql.format is exposed from SqlString.format
The sqlstring repo readme in turn document what it can handle, but the source itself is fairly straightforward so you can read it if you still miss something.
1 Comment
user31750755
thanks a lot! i missed that section, i was too focused on performing queries section and didn't knew that it was next to what i was looking for haha