Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typing of encrypt and appName mssql settings #7

Merged
merged 1 commit into from
Jan 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/adapters/sqlserver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,20 +56,20 @@ export default class SqlServerAdapter extends AbstractAdapter {
}

configDatabase(): config {
const config = {
const config: config = {
user: this.server.config.user,
password: this.server.config.password,
server: <string>this.server.config.host,
database: this.database.database,
port: this.server.config.port,
requestTimeout: Infinity,
appName: this.server.config.applicationName || 'sqlectron',
domain: this.server.config.domain,
pool: {
max: 5,
},
options: {
encrypt: this.server.config.ssl,
encrypt: !!this.server.config.ssl,
appName: this.server.config.applicationName || 'sqlectron',
enableArithAbort: true,
},
};
Expand All @@ -79,7 +79,7 @@ export default class SqlServerAdapter extends AbstractAdapter {
config.port = this.server.config.localPort;
}

return <config>config;
return config;
}

async connect(): Promise<void> {
Expand Down