Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions connection.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,17 @@
"title": "Show Users as DBs",
"type": "boolean",
"default": false
},
"defaultDatabase": {
"title": "Default Database",
"type": "string",
"minLength": 1
}
},
"properties": {
"server": { "$ref": "#/definitions/server" },
"port": { "$ref": "#/definitions/port" },
"defaultDatabase": { "$ref": "#/definitions/defaultDatabase" },
"username": { "$ref": "#/definitions/username" },
"usePassword": { "$ref": "#/definitions/usePassword" },
"tdsqlpreferences": {
Expand Down
1 change: 1 addition & 0 deletions src/ls/driver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default class TeraDriver
encryptdata: this.credentials.tdsqloptions.encryptdata.toString(),
dbs_port: this.credentials.port.toString(),
tmode: this.credentials.tdsqloptions.tmode,
database: this.credentials.defaultDatabase
};
this.connection = Promise.resolve(
await teradata_connect(connector_params).catch((e) => {
Expand Down
4 changes: 4 additions & 0 deletions ui.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"ui:order": [
"server",
"port",
"defaultDatabase",
"username",
"usePassword",
"password",
Expand All @@ -20,6 +21,9 @@
},
"tmode": {
"ui:help": "The mode used to connect to Teradata server"
},
"defaultDatabase": {
"ui:help": "Optional. Sets the initial database context for the session"
}
}
}