各个数据库ConnectionOptions参数中username/password等功能完善
Created by: yinlianghui
暂时只支持url这种连接方式,比如:
- "mssql://sa:hotoainc.@192.168.0.190/driver-test"
- "postgresql://postgres:hotoainc.@192.168.0.195/driver-test"
getConnectionOptions(): ConnectionOptions {
return {
type: "mssql",
url: this._url,
name: (new Date()).getTime().toString(),
entities: Object.values(this._entities),
username: this.config.username,
password: this.config.password,
database: this.config.database,
options: this.config.options,
logging: this.config.logging
};
}
还有更多连接参数需要支持,比如:
- postgresql的schema,ssl,uuidExtension 等