bmsd/mysql.h

changeset 405
ef3f0274a1ea
parent 194
d202777ebae5
child 502
a8a6901b5a99
--- a/bmsd/mysql.h	Wed Jun 05 20:24:16 2019 +0200
+++ b/bmsd/mysql.h	Mon Jun 10 20:04:12 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