bmsd/mysql.h

changeset 405
ef3f0274a1ea
parent 194
d202777ebae5
child 502
a8a6901b5a99
equal deleted inserted replaced
404:39a688b8d069 405:ef3f0274a1ea
16 * @brief Close MySQL connection and free resources. 16 * @brief Close MySQL connection and free resources.
17 */ 17 */
18 void bms_mysql_end(void); 18 void bms_mysql_end(void);
19 19
20 /** 20 /**
21 * @brief Send query to the MySQL server with one reconnect attempt.
22 * @param query The SQL query to send.
23 * @return Return 0 if no error, else the error code.
24 */
25 int bms_mysql_query(const char *query);
26
27 /**
21 * @brief Ping MySQL connection and try to reconnect if the connection is broken. 28 * @brief Ping MySQL connection and try to reconnect if the connection is broken.
22 */ 29 */
23 void bms_mysql_ping(void); 30 void bms_mysql_ping(void);
24 31
25 void node_mysql_insert(sys_node_list *node); 32 void node_mysql_insert(sys_node_list *node);

mercurial