Compare commits

...

2 Commits

Author SHA1 Message Date
a9a02eb45b Merge branch 'main' of git.opencomputing.cn:yumoqing/sqlor 2026-07-14 14:53:25 +08:00
e83fbd9931 bugfix 2026-07-14 14:52:52 +08:00

View File

@ -205,10 +205,14 @@ class DBPools(EventDispatcher):
self.databases[name] = desc
async def getSqlor(self, name):
desc = self.databases.get(name)
sor = sqlorFactory(desc)
await sor.connect()
return sor
try:
desc = self.databases.get(name)
sor = sqlorFactory(desc)
await sor.connect()
return sor
except Exception as e:
exception(f'{name=}, {e}')
raise e
@asynccontextmanager
async def sqlorContext(self, name):