|
|
@@ -786,6 +786,14 @@ namespace ylib {
|
|
|
ylib::json result::row_to_json() {
|
|
|
return get_row().to_json();
|
|
|
}
|
|
|
+ ylib::json result::table() {
|
|
|
+ ylib::json arr;
|
|
|
+ arr = ylib::json::type::array;
|
|
|
+ while(this->next()){
|
|
|
+ arr.push_back(this->get_row().to_json());
|
|
|
+ }
|
|
|
+ return arr;
|
|
|
+ }
|
|
|
|
|
|
#undef ENSURE_RS
|
|
|
|