Commit f80bd32b5ae0327c90c5b47d61f400bd29d94010

Authored by totoro
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,15 +27,17 @@ public type HK_Table_controller:
27 hk_table_controller( 27 hk_table_controller(
28 String table_name, 28 String table_name,
29 List(String) columns_name, 29 List(String) columns_name,
30 - 30 + String select_fields,
31 //Create 31 //Create
32 (SQLite3DataBase db, List(Web_arg) lwa) -> Maybe(Int) write_from_type, 32 (SQLite3DataBase db, List(Web_arg) lwa) -> Maybe(Int) write_from_type,
33 (SQLite3DataBase db, List(Web_arg) lwa) -> Maybe(Int) write_from_fields, 33 (SQLite3DataBase db, List(Web_arg) lwa) -> Maybe(Int) write_from_fields,
34 //Read 34 //Read
35 (SQLite3DataBase db, String clause) -> Int get_count, 35 (SQLite3DataBase db, String clause) -> Int get_count,
36 //(SQLite3DataBase db, String clause) -> List($T) get_all_by_clause_to_list_type, 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 //Update 41 //Update
40 //Delete 42 //Delete
41 (SQLite3DataBase db, List(Int) l_int) -> Maybe(One) delete, 43 (SQLite3DataBase db, List(Int) l_int) -> Maybe(One) delete,