mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 19:20:12 +01:00
25 lines
755 B
C
25 lines
755 B
C
/*
|
|
* sql.h, SJ
|
|
*/
|
|
|
|
#ifndef _SQL_H
|
|
#define _SQL_H
|
|
|
|
|
|
int open_database(struct session_data *sdata, struct __config *cfg);
|
|
void close_database(struct session_data *sdata);
|
|
int prepare_sql_statement(struct session_data *sdata, MYSQL_STMT **stmt, char *s);
|
|
void p_query(struct session_data *sdata, char *s);
|
|
int p_exec_query(struct session_data *sdata, MYSQL_STMT *stmt, struct __data *data);
|
|
int p_store_results(struct session_data *sdata, MYSQL_STMT *stmt, struct __data *data);
|
|
int p_fetch_results(MYSQL_STMT *stmt);
|
|
void p_free_results(MYSQL_STMT *stmt);
|
|
void p_bind_init(struct __data *data);
|
|
uint64 p_get_insert_id(MYSQL_STMT *stmt);
|
|
int p_get_affected_rows(MYSQL_STMT *stmt);
|
|
void close_prepared_statement(MYSQL_STMT *stmt);
|
|
|
|
|
|
#endif /* _PILER_H */
|
|
|