server_db_result_t * server_db_query(server_db_t *db, char *query)
Returns a result on success, or NULL on failure.
The db you provide is obtained with server_db_pool_take(), the query is a SQL query (MySQL currently).
I've wrapped the MySQL functions with a ServerKit API so we can possibly add support for other SQL implementations in the future, i.e. postgres, or maybe db2. So if you have programmed using libmysqlclient, this should be very familiar to you.