Commit f80bd32b5ae0327c90c5b47d61f400bd29d94010
1 parent
67283d2a
added in table controller :
- select_fields (all columns name of the datatable separated with coma) - make_json_extractor
Showing
1 changed file
with
5 additions
and
3 deletions
Show diff stats
controller/hk_controller.anubis
| ... | ... | @@ -27,15 +27,17 @@ public type HK_Table_controller: |
| 27 | 27 | hk_table_controller( |
| 28 | 28 | String table_name, |
| 29 | 29 | List(String) columns_name, |
| 30 | - | |
| 30 | + String select_fields, | |
| 31 | 31 | //Create |
| 32 | 32 | (SQLite3DataBase db, List(Web_arg) lwa) -> Maybe(Int) write_from_type, |
| 33 | 33 | (SQLite3DataBase db, List(Web_arg) lwa) -> Maybe(Int) write_from_fields, |
| 34 | 34 | //Read |
| 35 | 35 | (SQLite3DataBase db, String clause) -> Int get_count, |
| 36 | 36 | //(SQLite3DataBase db, String clause) -> List($T) get_all_by_clause_to_list_type, |
| 37 | - (SQLite3DataBase db, List(String) columns, Bool resolve_fk, DB_id) -> JsonValue get_one_json, | |
| 38 | - (SQLite3DataBase db, List(String) columns, Bool resolve_fk, HK_Referer referer, String clause, String order_by) -> JsonValue get_rows_json, | |
| 37 | + (SQLite3DataBase db, List(String) columns, Bool resolve_fk) -> List(((Int -> SQLite3Datum) -> JsonMember)) make_json_extractor, | |
| 38 | + | |
| 39 | + (SQLite3DataBase db, List(String) columns, Bool resolve_fk, DB_id) -> JsonValue get_one_json, | |
| 40 | + (SQLite3DataBase db, List(String) columns, Bool resolve_fk, HK_Referer referer, String clause, String order_by) -> JsonValue get_rows_json, | |
| 39 | 41 | //Update |
| 40 | 42 | //Delete |
| 41 | 43 | (SQLite3DataBase db, List(Int) l_int) -> Maybe(One) delete, | ... | ... |