MXS-1113 Add support for prepared statements in schemarouter

Implement handling of the text protocol part of the prepared statements
in schemarouter.
This commit is contained in:
Marko
2018-07-29 14:21:55 +03:00
parent bfe5bcd7a7
commit adbc3a6749
4 changed files with 80 additions and 3 deletions

View File

@ -51,6 +51,12 @@ public:
*/
SERVER* get_location(std::string db);
void add_statement(std::string stmt, SERVER* target);
SERVER* get_statement(std::string stmt);
bool remove_statement(std::string stmt);
/**
* @brief Change the location of a database
*
@ -93,6 +99,7 @@ public:
private:
ServerMap m_map;
ServerMap stmt_map;
time_t m_last_updated;
};