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
00034 #ifndef KM_DBASE_H
00035 #define KM_DBASE_H
00036
00037 #include "../../lib/srdb1/db_con.h"
00038 #include "../../lib/srdb1/db_res.h"
00039 #include "../../lib/srdb1/db_key.h"
00040 #include "../../lib/srdb1/db_op.h"
00041 #include "../../lib/srdb1/db_val.h"
00042
00043
00044
00045
00046
00047 db1_con_t* db_postgres_init(const str* _url);
00048
00049
00050
00051
00052 db1_con_t* db_postgres_init2(const str* _url, db_pooling_t pooling);
00053
00054
00055
00056
00057 void db_postgres_close(db1_con_t* _h);
00058
00059
00060
00061
00062 int db_postgres_store_result(const db1_con_t* _h, db1_res_t** _r);
00063
00064
00065
00066
00067
00068 int db_postgres_free_result(db1_con_t* _h, db1_res_t* _r);
00069
00070
00071
00072
00073
00074 int db_postgres_query(const db1_con_t* _h, const db_key_t* _k, const db_op_t* _op,
00075 const db_val_t* _v, const db_key_t* _c, const int _n, const int _nc,
00076 const db_key_t _o, db1_res_t** _r);
00077
00078
00079
00080
00081 int db_postgres_raw_query(const db1_con_t* _h, const str* _s, db1_res_t** _r);
00082
00083
00084
00085
00086
00087 int db_postgres_insert(const db1_con_t* _h, const db_key_t* _k, const db_val_t* _v,
00088 const int _n);
00089
00090
00091
00092
00093
00094 int db_postgres_delete(const db1_con_t* _h, const db_key_t* _k, const db_op_t* _o,
00095 const db_val_t* _v, const int _n);
00096
00097
00098
00099
00100
00101 int db_postgres_update(const db1_con_t* _h, const db_key_t* _k, const db_op_t* _o,
00102 const db_val_t* _v, const db_key_t* _uk, const db_val_t* _uv, const int _n,
00103 const int _un);
00104
00105
00106
00107
00108 int db_postgres_fetch_result(const db1_con_t* _h, db1_res_t** _r, const int nrows);
00109
00110
00111
00112
00113 int db_postgres_affected_rows(const db1_con_t* _h);
00114
00115
00116
00117
00118 int db_postgres_start_transaction(db1_con_t* _h);
00119
00120
00121
00122
00123 int db_postgres_end_transaction(db1_con_t* _h);
00124
00125
00126
00127
00128 int db_postgres_abort_transaction(db1_con_t* _h);
00129
00130
00131
00132
00133
00134 int db_postgres_use_table(db1_con_t* _h, const str* _t);
00135
00136
00137
00138
00139 int db_postgres_replace(const db1_con_t* _h, const db_key_t* _k,
00140 const db_val_t* _v, const int _n, const int _un, const int _m);
00141
00142 #endif