mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat: Ask to add database version information
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