mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 17:26:55 +08:00
Merge branch 'main' of https://github.com/dataease/SQLBot
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user