Compare commits

...

2 Commits

Author SHA1 Message Date
1c694869bb bugfix 2025-10-22 15:43:02 +08:00
9b421499f4 bugfix 2025-10-22 15:41:52 +08:00
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[metadata]
name=sqlor
version = 2.0.0
version = 2.0.1
description = a new version of sqlor, each db's sor need to plugin to sqlor, and dbdriver now a isolated module
authors = yu moqing
author_email = yumoqing@gmail.com

View File

@ -6,6 +6,7 @@ import codecs
from contextlib import asynccontextmanager
from appPublic.worker import get_event_loop
from appPublic.myImport import myImport
from appPublic.dictObject import DictObject
from appPublic.Singleton import SingletonDecorator
@ -73,7 +74,7 @@ class SqlorPool:
class DBPools:
def __init__(self,databases={},max_connect=100,loop=None):
if loop is None:
loop = asyncio.get_event_loop()
loop = get_event_loop()
self.loop = loop
self.max_connect = max_connect
self._pools = {}