node-mysql2 icon indicating copy to clipboard operation
node-mysql2 copied to clipboard

Missing documentation about '??' characters as placeholders for identifiers?

Open tirengarfio opened this issue 2 years ago • 1 comments

Hi,

looks like using ?? is working as placeholders for identifiers as in mysql, but I'm missing some information on the documentation about that. Or is it just something new that I just found out or something inherited from "mysql" package?

tirengarfio avatar Jul 14 '23 15:07 tirengarfio

Hi, @tirengarfio 🙋🏻‍♂️

From MySQL2 documentation:

MySQL2 is mostly API compatible with Node MySQL. You should check their API documentation to see all available API options.

Also:

MySQL2 is mostly API compatible with mysqljs and supports majority of features. MySQL2 also offers these additional features:

  • Faster / Better Performance
  • Prepared Statements
  • MySQL Binary Log Protocol
  • MySQL Server
  • Extended support for Encoding and Collation
  • Promise Wrapper
  • Compression
  • SSL and Authentication Switch
  • Custom Streams
  • Pooling

You can follow these quotes from documentation here and here.

wellwelwel avatar Jul 14 '23 17:07 wellwelwel