mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
refactor: assistant support all sqlbot datasource #467
This commit is contained in:
@@ -170,7 +170,7 @@ class AssistantOutDs:
|
||||
for table in ds.tables:
|
||||
i += 1
|
||||
schema_table = ''
|
||||
schema_table += f"# Table: {db_name}.{table.name}" if ds.type != "mysql" else f"# Table: {table.name}"
|
||||
schema_table += f"# Table: {db_name}.{table.name}" if ds.type != "mysql" and ds.type != "es" else f"# Table: {table.name}"
|
||||
table_comment = table.comment
|
||||
if table_comment == '':
|
||||
schema_table += '\n[\n'
|
||||
|
||||
Reference in New Issue
Block a user