MXS-1779 Add initial support for classification URL
This commit introduces the plumbing support for obtaining
classification information of a statement using the REST-API.
It introduces a URL like
/v1/maxscale/query_classifier/classify?sql=SELECT+1
that in the response will return a JSON object with the
information. Subsequent commits will provide the actual
information.
This commit is contained in:
@ -56,4 +56,14 @@ std::unique_ptr<json_t> qc_as_json(const char* zHost);
|
||||
*/
|
||||
bool qc_alter_from_json(json_t* pJson);
|
||||
|
||||
/**
|
||||
* Classify statement
|
||||
*
|
||||
* @param zHost The MaxScale host.
|
||||
* @param statement The statement to be classified.
|
||||
*
|
||||
* @return A json object containing information about the statement.
|
||||
*/
|
||||
std::unique_ptr<json_t> qc_classify_as_json(const char* zHost, const std::string& statement);
|
||||
|
||||
MXS_END_DECLS
|
||||
|
||||
Reference in New Issue
Block a user