feat(connection): 添加MySQL超时配置

This commit is contained in:
xlh
2026-02-03 09:37:00 +08:00
parent c921d85813
commit ba58cd07c5
4 changed files with 36 additions and 6 deletions

View File

@@ -79,6 +79,7 @@ export namespace connection {
ssh: SSHConfig;
driver?: string;
dsn?: string;
timeout?: number;
static createFrom(source: any = {}) {
return new ConnectionConfig(source);
@@ -96,6 +97,7 @@ export namespace connection {
this.ssh = this.convertValues(source["ssh"], SSHConfig);
this.driver = source["driver"];
this.dsn = source["dsn"];
this.timeout = source["timeout"];
}
convertValues(a: any, classs: any, asMap: boolean = false): any {