mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 17:26:55 +08:00
feat: Vector retrieval matches tables
This commit is contained in:
@@ -99,7 +99,7 @@ async def get_tables_by_conf(session: SessionDep, trans: Trans, ds: CoreDatasour
|
||||
def inner():
|
||||
return getTablesByDs(session, ds)
|
||||
|
||||
await asyncio.to_thread(inner)
|
||||
return await asyncio.to_thread(inner)
|
||||
except Exception as e:
|
||||
# check ds status
|
||||
def inner():
|
||||
@@ -117,7 +117,7 @@ async def get_schema_by_conf(session: SessionDep, trans: Trans, ds: CoreDatasour
|
||||
def inner():
|
||||
return get_schema(ds)
|
||||
|
||||
await asyncio.to_thread(inner)
|
||||
return await asyncio.to_thread(inner)
|
||||
except Exception as e:
|
||||
# check ds status
|
||||
def inner():
|
||||
|
||||
Reference in New Issue
Block a user