diff -r 0fc59d0aa3df -r cfd17cfe64dc bmsd/mysql.h --- a/bmsd/mysql.h Wed Jun 05 20:06:14 2019 +0200 +++ b/bmsd/mysql.h Fri Jun 14 20:26:51 2019 +0200 @@ -18,6 +18,13 @@ void bms_mysql_end(void); /** + * @brief Send query to the MySQL server with one reconnect attempt. + * @param query The SQL query to send. + * @return Return 0 if no error, else the error code. + */ +int bms_mysql_query(const char *query); + +/** * @brief Ping MySQL connection and try to reconnect if the connection is broken. */ void bms_mysql_ping(void);