feat: Ask to add database version information

This commit is contained in:
junjun
2025-08-26 18:03:05 +08:00
parent c530411dd6
commit 17036f7c52
+2 -1
View File
@@ -14,7 +14,7 @@ def get_version_sql(ds: CoreDatasource, conf: DatasourceConf):
"""
elif ds.type == "pg" or ds.type == "excel":
return f"""
select version()
SELECT current_setting('server_version')
"""
elif ds.type == "oracle":
return f"""
@@ -29,6 +29,7 @@ def get_version_sql(ds: CoreDatasource, conf: DatasourceConf):
SELECT * FROM v$version
"""
def get_table_sql(ds: CoreDatasource, conf: DatasourceConf):
if ds.type == "mysql" or ds.type == "doris":
return f"""