2 #include "../acl_cpp_define.hpp" 3 #include "../stdlib/noncopyable.hpp" 6 #ifndef ACL_CLIENT_ONLY 30 static bool build_open(
string& out,
int id,
31 const char* dbn,
const char* tbl,
32 const char* idx,
const char* flds);
47 static bool build_get(
string& out,
int id,
48 const char* values[],
int num,
49 const char* cond =
"=",
int nlimit = 0,
int noffset = 0);
61 int nfld, const
char* first_value, ...);
78 static
bool build_mod(
string& out,
int id,
79 const
char* values[],
int num,
80 const
char* to_values[],
int to_num,
81 const
char* cond = "=",
int nlimit = 0,
int noffset = 0);
95 static
bool build_del(
string& out,
int id, const
char* values[],
96 int num, const
char* cond = "=",
97 int nlimit = 0,
int noffset = 0);
109 int nfld, const
char* first_value, ...);
120 static
bool build_add(
string& out,
int id,
121 const
char* values[],
int num);
133 int nfld, const
char* first_value, ...);
153 static
void build_request(
string& out,
int id, const
char* oper,
154 const
char* values[],
int num,
155 const
char* limit_offset,
char mop,
156 const
char* to_values[],
int to_num);
166 bool parse_respond(
int nfld,
string& in,
167 int& errnum_out, const
char*& serror_out);
173 const std::vector<
hsrow*>& get();
187 std::vector<
hsrow*> rows_;
191 std::vector<
hsrow*> rows_cache_;
197 hsrow* get_next_row();
202 #endif // ACL_CLIENT_ONLY #define ACL_CPP_PRINTF(format_idx, arg_idx)