db_mysql/dbase.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef DBASE_H
00035 #define DBASE_H
00036
00037
00038 #include "../../db/db_con.h"
00039 #include "../../db/db_res.h"
00040 #include "../../db/db_key.h"
00041 #include "../../db/db_op.h"
00042 #include "../../db/db_val.h"
00043 #include "../../str.h"
00044
00045
00046
00047
00048 db_con_t* db_mysql_init(const str* _sqlurl);
00049
00050
00051
00052
00053
00054 void db_mysql_close(db_con_t* _h);
00055
00056
00057
00058
00059
00060 int db_mysql_free_result(db_con_t* _h, db_res_t* _r);
00061
00062
00063
00064
00065
00066 int db_mysql_query(const db_con_t* _h, const db_key_t* _k, const db_op_t* _op,
00067 const db_val_t* _v, const db_key_t* _c, const int _n, const int _nc,
00068 const db_key_t _o, db_res_t** _r);
00069
00070
00071
00072
00073
00074 int db_mysql_fetch_result(const db_con_t* _h, db_res_t** _r, const int nrows);
00075
00076
00077
00078
00079
00080 int db_mysql_raw_query(const db_con_t* _h, const str* _s, db_res_t** _r);
00081
00082
00083
00084
00085
00086 int db_mysql_insert(const db_con_t* _h, const db_key_t* _k, const db_val_t* _v, const int _n);
00087
00088
00089
00090
00091
00092 int db_mysql_delete(const db_con_t* _h, const db_key_t* _k, const
00093 db_op_t* _o, const db_val_t* _v, const int _n);
00094
00095
00096
00097
00098
00099 int db_mysql_update(const db_con_t* _h, const db_key_t* _k, const db_op_t* _o,
00100 const db_val_t* _v, const db_key_t* _uk, const db_val_t* _uv, const int _n,
00101 const int _un);
00102
00103
00104
00105
00106
00107 int db_mysql_replace(const db_con_t* handle, const db_key_t* keys, const db_val_t* vals, const int n);
00108
00109
00110
00111
00112 int db_last_inserted_id(const db_con_t* _h);
00113
00114
00115
00116
00117 int db_insert_update(const db_con_t* _h, const db_key_t* _k, const db_val_t* _v,
00118 const int _n);
00119
00120
00121
00122
00123
00124
00125 int db_mysql_use_table(db_con_t* _h, const str* _t);
00126
00127
00128 #endif