Commit 67283d2acf36bae89805163ecebbec67fa677e3f

Authored by totoro
1 parent 3fbfbd95

Add list of the column's name of the table

Showing 1 changed file with 7 additions and 5 deletions   Show diff stats
controller/hk_controller.anubis
... ... @@ -25,17 +25,19 @@ transmit calexium_lib/database/db_types.anubis
25 25  
26 26 public type HK_Table_controller:
27 27 hk_table_controller(
28   - String table_name,
29   - //Create
  28 + String table_name,
  29 + List(String) columns_name,
  30 +
  31 + //Create
30 32 (SQLite3DataBase db, List(Web_arg) lwa) -> Maybe(Int) write_from_type,
31 33 (SQLite3DataBase db, List(Web_arg) lwa) -> Maybe(Int) write_from_fields,
32   - //Read
  34 + //Read
33 35 (SQLite3DataBase db, String clause) -> Int get_count,
34 36 //(SQLite3DataBase db, String clause) -> List($T) get_all_by_clause_to_list_type,
35 37 (SQLite3DataBase db, List(String) columns, Bool resolve_fk, DB_id) -> JsonValue get_one_json,
36 38 (SQLite3DataBase db, List(String) columns, Bool resolve_fk, HK_Referer referer, String clause, String order_by) -> JsonValue get_rows_json,
37   - //Update
38   - //Delete
  39 + //Update
  40 + //Delete
39 41 (SQLite3DataBase db, List(Int) l_int) -> Maybe(One) delete,
40 42  
41 43 //view interface
... ...