From 03b4965766405b4dec625516414cd1d6d7785723 Mon Sep 17 00:00:00 2001 From: totoro Date: Tue, 9 Feb 2016 19:32:56 +0100 Subject: [PATCH] add a short_name for table. This is necessary because during checking process the name of the table is prefixed by the application name. Hence short_name is the memory of original table name --- database/model/db_model.anubis | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/database/model/db_model.anubis b/database/model/db_model.anubis index 3a49628..dcb34e7 100644 --- a/database/model/db_model.anubis +++ b/database/model/db_model.anubis @@ -205,11 +205,24 @@ public type HK_Display: List(String)). public type HK_Table: - hk_table ( String name, // name of the table + hk_table ( String name, //name of the table + String short_name, //table name without app_name in prefix HK_Model model, HK_Display display). - *** (3.8) 'DB_Database' (describing a whole database). +public define HK_Table + hk_table + ( + String name, //name of the table + HK_Model model, + HK_Display display + )= + hk_table(name, "", model, display). + + + + + Description of a whole database: @@ -977,7 +990,7 @@ public define String String indent, //indentation string to use HK_List_View list_view //list view to generate )= - since table is hk_table(table_name, model, _), //get name and model of the table + since table is hk_table(table_name, short, model, _), //get name and model of the table since model is hk_model( columns, _), //get all columns of table // since display is db_display(views, _), // with current_list_column = if list_view is -- libgit2 0.21.4