From 5bfd02174bbd737b82f381e54d0925348b507fed Mon Sep 17 00:00:00 2001 From: caoshd Date: Thu, 4 Apr 2024 19:19:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9:=20improve=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/resources/config/h2.properties | 6 +++++- src/test/resources/config/mysql.properties | 3 +-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/test/resources/config/h2.properties b/src/test/resources/config/h2.properties index e3a25ab..92be975 100644 --- a/src/test/resources/config/h2.properties +++ b/src/test/resources/config/h2.properties @@ -2,4 +2,8 @@ table.sql=select table_schema, table_name, remarks as table_comment from informa column.sql=select column_name, remarks as column_comment, data_type, case when is_identity = 'YES' then '1' else '0' end as auto_increment from information_schema.columns where table_schema = ? and table_name = ? label.table_schema=TABLE_SCHEMA label.table_name=TABLE_NAME -label.table_comment=TABLE_COMMENT \ No newline at end of file +label.table_comment=TABLE_COMMENT +label.column_name=COLUMN_NAME +label.column_comment=COLUMN_COMMENT +label.data_type=DATA_TYPE +label.primary=PRIMARY \ No newline at end of file diff --git a/src/test/resources/config/mysql.properties b/src/test/resources/config/mysql.properties index 357900b..199a64a 100644 --- a/src/test/resources/config/mysql.properties +++ b/src/test/resources/config/mysql.properties @@ -1,4 +1,3 @@ - table.sql=select table_schema, table_name, table_comment from information_schema.tables where table_schema = DATABASE(); column.sql=select column_name, column_comment, data_type, locate('auto_increment', extra) > 0 as auto_increment, case when column_key = 'PRI' then '1' else '0' end as `primary` from information_schema.columns where table_schema = ? and table_name = ? label.table_schema=TABLE_SCHEMA @@ -7,4 +6,4 @@ label.table_comment=TABLE_COMMENT label.column_name=COLUMN_NAME label.column_comment=COLUMN_COMMENT label.data_type=DATA_TYPE -label.primary=PRIMARY +label.primary=PRIMARY \ No newline at end of file