/* * Created by PyramIDE. * User: フランスのトトロ aka (David RENÉ) * Date: 19/03/2016 * Time: 19:25 * © David RENÉ */ read xlib/web/common.anubis read xlib/web/web_arg_utils.anubis //TODO move to hayamiki lib as view part of MVC //read hayamiki_lib/view/view_table_manager.anubis read hayamiki_lib/controller/hk_sql_utils.anubis public define Result(String, String) hk_delete_row ( List(Web_arg) lwa, SQLite3DataBase db )= if get_String(lwa, "table_name") is {failure then error("CANT_GET_ARGUMENT"), success(table_name) then with ids = get_Int_list(lwa, "id"), if delete_from_ids(db, table_name, ids) is {failure then error("DELETE_ROW_DB_ERROR"), success(_) then ok("DELETE_ROW_OK") }} .