#ifndef __ACL_DBMYSQL_INCLUDE_H__
#define __ACL_DBMYSQL_INCLUDE_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "stdlib/acl_define.h"
#include "db/acl_dbpool.h"

#ifdef HAS_MYSQL

ACL_SQL_RES *acl_dbmysql_select(ACL_DB_HANDLE *handle, const char *sql, int *error);
void acl_dbmysql_free_result(ACL_SQL_RES *res);
int acl_dbmysql_results(ACL_DB_HANDLE *handle, const char *sql, int  *error,
	int (*walk_fn)(const void** my_row, void *arg), void *arg);
int acl_dbmysql_result(ACL_DB_HANDLE *handle, const char *sql, int  *error,
	int (*callback)(const void** my_row, void *arg), void *arg);
int acl_dbmysql_update(ACL_DB_HANDLE *handle, const char *sql, int  *error);

#endif /* HAS_MYSQL */

#ifdef __cplusplus
}
#endif

#endif

