4 #ifndef DBA_SQL_QUERYBUF_H 5 #define DBA_SQL_QUERYBUF_H 26 explicit Querybuf(
size_t reserve = 512);
62 void appendf(
const char* fmt, ...) __attribute__((format(printf, 2, 3)));
83 void append_listf(
const char* fmt, ...) __attribute__((format(printf, 2, 3)));
void start_list_item()
Notify the start of a new list item.
Querybuf(size_t reserve=512)
void void append_list(const char *str)
Append a string to the querybuf, as part of a list.
void clear()
Reset the querybuf to contain the empty string.
void appendf(const char *fmt,...) __attribute__((format(printf
Append a formatted string to the querybuf.
void void append_varlist(const std::string &varlist)
Append a comma-separated list of integer varcodes parsed from a varlist=B12101,B12013 query parameter...
void append_listf(const char *fmt,...) __attribute__((format(printf
Append a formatted string to the querybuf, as part of a list.
void start_list(const char *sep)
Begin a list of items separated by the given separator.
void append_int(int val)
Append an integer value.
String buffer for composing database queries.
Definition: querybuf.h:15