bmsd/mysql.h

branch
stable
changeset 413
cfd17cfe64dc
parent 405
ef3f0274a1ea
child 502
a8a6901b5a99
--- 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);

mercurial