This commit is contained in:
2019-04-15 17:36:06 +08:00
parent fe3ea393ba
commit 9a7953aa47
23 changed files with 325 additions and 536 deletions

View File

@@ -0,0 +1,23 @@
#define arrToStr(arr)
#for(x : arr)
'#(x)' #if(!for.last),#end
#end
#end
#sql("db.table_list")
SELECT TABLE_NAME 'name',TABLE_COMMENT 'comment',table_schema 'catalog' FROM INFORMATION_SCHEMA.TABLES
WHERE 1=1
#if(catalogs)
AND TABLE_SCHEMA IN (#@arrToStr(catalogs))
#end
#if(catalog)
AND TABLE_SCHEMA = '#(catalog)'
#end
#if(tables)
AND TABLE_NAME IN (#@arrToStr(tables))
#end
#if(table)
AND TABLE_NAME = '#(table)'
#end
#end