Skip to content

Coming from Another Plugin

imshooter edited this page Nov 29, 2026 · 1 revision

Scripts written with the usual MySQL natives compile and run with #include <mysql>, in place of the include they had. The names, signatures, enums, mysql.ini keys and the behaviour of the cache, the ORM and OnQueryError are the same.

What may differ:

  • POOL_SIZE is 4 by default, and the connections of the pool open when they first have work.
  • %f writes a float with as many digits as it needs, and %.4f with four decimals.
  • ERROR_CALLBACK calls the public of a failed query too, with mysql_errno and cache_get_errno giving its error.
  • mysql_tquery_file and mysql_query_file split the file at semicolons outside quotes and comments, and stop at the first query that fails.

What is new: mysql_tquery_format and its siblings, queries built in pieces, prepared statements and batches, transactions, JSON cells, cache_get_row, passwords, limits, TLS options and the open.mp names of every native.

Home

Guides

Reference

Functions

Connections
Queries
Cache
JSON cells
ORM
Queries built in pieces
Prepared statements
Batches
Transactions
Passwords
Callbacks

Clone this wiki locally