mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
refactor: Optimize connection pool
This commit is contained in:
@@ -122,6 +122,7 @@ class DatasourceConf(BaseModel):
|
||||
timeout: int = 30
|
||||
lowVersion: bool = False
|
||||
ssl: bool = False
|
||||
poolSize: int = 5
|
||||
|
||||
def to_dict(self):
|
||||
return {
|
||||
@@ -138,7 +139,8 @@ class DatasourceConf(BaseModel):
|
||||
"mode": self.mode,
|
||||
"timeout": self.timeout,
|
||||
"lowVersion": self.lowVersion,
|
||||
"ssl": self.ssl
|
||||
"ssl": self.ssl,
|
||||
"poolSize": self.poolSize
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user