Details
-
Task
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
None
Description
It'd be useful for some plugins to read/store data from/to server tables.
So we can provide the service (as it is defined in the Plugin API) with that functionality.
The functions of that service look exactly as their counterparts from the client library, so users won't be needing extra documentation.
The decided set of functions is:
mysql_init
mysql_real_connect
mysql_options
mysql_close
mysql_real_query
mysql_affected_rows
mysql_errno
mysql_error
mysql_store_result
mysql_free_result
mysql_num_rows
mysql_num_fields
mysql_fetch_row
mysql_fetch_lengths
So that the plugin can do calls like
mysql_real_connect();
mysql_real_query();..
res= mysql_store_result();
...
and it's supposed to work as it does with the client library. The only addition is the
MYSQL_CONNECT_LOCAL option. Connection of that sort attaches to the server itself.
These local queries handled using Server_runnable class model.
Attachments
Issue Links
- blocks
-
MDEV-27595 Backport SQL service, introduced by MDEV-19275
- Closed
- causes
-
MDEV-26890 rpl.rpl_shutdown_wait_slaves fails with timeout on sync_with_master
- Closed
- includes
-
MDEV-4641 API for running SQL from inside the server
- Closed
- is blocked by
-
MDEV-9245 password "reuse prevention" validation plugin
- Closed