Repository navigation
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_SIZEis4by default, and the connections of the pool open when they first have work. -
%fwrites a float with as many digits as it needs, and%.4fwith four decimals. -
ERROR_CALLBACKcalls 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.
mysql 0.6.0 · Repository · Releases · MIT License
Guides
- Installation
- Configuration
- Queries
- The cache
- JSON cells
- Prepared statements
- Transactions
- The ORM
- Passwords
- Errors
- TLS
- Coming from another plugin
- Performance
Reference
Functions
Connections
Queries
Cache
- cache_get_row_count
- cache_get_field_count
- cache_get_result_count
- cache_get_field_name
- cache_get_field_type
- cache_get_field_index
- cache_set_result
- cache_get_value_index
- cache_get_value_index_int
- cache_get_value_index_float
- cache_get_value_index_bool
- cache_is_value_index_null
- cache_get_value_name
- cache_get_value_name_int
- cache_get_value_name_float
- cache_get_value_name_bool
- cache_is_value_name_null
- cache_get_row
- cache_save
- cache_delete
- cache_set_active
- cache_unset_active
- cache_is_any_active
- cache_is_valid
- cache_affected_rows
- cache_insert_id
- cache_warning_count
- cache_get_query_exec_time
- cache_get_query_string
- cache_get_errno