Skip to content

Commit

Permalink
JS: Added DataConnection dataSource getter
Browse files Browse the repository at this point in the history
  • Loading branch information
PavloPolovyi committed Oct 28, 2024
1 parent b9dc6ca commit 74a06db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions js-api/src/api/grok_api.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,7 @@ export interface IDartApi {
grok_DataConnection_Get_Parameters(c: any): any;
grok_DataConnection_Query(c: any, name: String, sql: String): any;
grok_DataConnection_Get_Credentials(c: any): any;
grok_DataConnection_Get_DataSource(c: any): any;
grok_DataConnection_Test(c: any): Promise<any>;
grok_Credentials_Parameters(c: any): any;
grok_Credentials_OpenParameters(c: any): any;
Expand Down
4 changes: 4 additions & 0 deletions js-api/src/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,10 @@ export class DataConnection extends Entity {
return toJs(api.grok_DataConnection_Get_Credentials(this.dart));
}

get dataSource(): string {
return api.grok_DataConnection_Get_DataSource(this.dart);
}

/** Collection of parameters: server, database, endpoint, etc. */
// get parameters(): DataConnectionParams { return api.grok_DataConnection_Parameters(this.dart); }

Expand Down

0 comments on commit 74a06db

Please sign in to comment.