MySQL 8.0.39
Source Code Documentation
|
An implementation of these services will be called as the data resulting from calling mysql_query() service are produced by the server. More...
#include <mysql_command_consumer.h>
Public Attributes | |
mysql_service_status_t(* | start )(SRV_CTX_H *srv_ctx_h, MYSQL_H *mysql_h) |
Prepares the data handle(srv_ctx_h), i.e allocates and prepares the Dom_ctx object and assigned to the srv_ctx_h. More... | |
void(* | end )(SRV_CTX_H srv_ctx_h) |
Deallocates the memory allocated for data handle in start api. More... | |
An implementation of these services will be called as the data resulting from calling mysql_query() service are produced by the server.
Most often the default implementation of this service that will cache the data into a memory structure into the MYSQL handle will be used. But this will only work if the resultset expected is relatively small.
If one wants to avoid the memory caching and process the data SAX style as they are returned by the SQL execution define, they should provide their own implementation of this service that will process the data differently at the time of their production.
A service that provides the apis for start and end.
void(* s_mysql_mysql_text_consumer_factory_v1::end) (SRV_CTX_H srv_ctx_h) |
Deallocates the memory allocated for data handle in start api.
srv_ctx_h | dom data handle(Dom_ctx type), which needs to be deallocated. |
void |
mysql_service_status_t(* s_mysql_mysql_text_consumer_factory_v1::start) (SRV_CTX_H *srv_ctx_h, MYSQL_H *mysql_h) |
Prepares the data handle(srv_ctx_h), i.e allocates and prepares the Dom_ctx object and assigned to the srv_ctx_h.
[out] | srv_ctx_h | Dom_ctx data handle. |
mysql_h | mysql handle used to prepare srv_ctx_h |
false | success. srv_ctx_h was prepared. |
true | failure. OOM or invalid mysql_h. |