2013-05-05 11:57:14 +02:00
|
|
|
/*
|
|
|
|
* sql.h, SJ
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SQL_H
|
|
|
|
#define _SQL_H
|
|
|
|
|
|
|
|
|
2017-08-08 15:34:45 +02:00
|
|
|
int open_database(struct session_data *sdata, struct config *cfg);
|
2022-12-29 06:19:33 +01:00
|
|
|
int open_sphx(struct session_data *sdata, struct config *cfg);
|
2013-05-05 11:57:14 +02:00
|
|
|
void close_database(struct session_data *sdata);
|
2022-12-29 06:19:33 +01:00
|
|
|
void close_sphx(struct session_data *sdata);
|
2017-08-11 18:18:45 +02:00
|
|
|
int prepare_sql_statement(struct session_data *sdata, struct sql *sql, char *s);
|
2016-01-02 08:16:38 +01:00
|
|
|
void p_query(struct session_data *sdata, char *s);
|
2017-08-11 18:18:45 +02:00
|
|
|
int p_exec_stmt(struct session_data *sdata, struct sql *sql);
|
|
|
|
int p_store_results(struct sql *sql);
|
|
|
|
int p_fetch_results(struct sql *sql);
|
|
|
|
void p_free_results(struct sql *sql);
|
|
|
|
void p_bind_init(struct sql *sql);
|
|
|
|
uint64 p_get_insert_id(struct sql *sql);
|
|
|
|
int p_get_affected_rows(struct sql *sql);
|
|
|
|
void close_prepared_statement(struct sql *sql);
|
2013-05-05 11:57:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* _PILER_H */
|