Connection UI | Connection Settings |
![]() |
Allows you to connect to a JDBC source for Data Library imports. The following fields are used to define the connection parameters. General |
![]() |
Database URI |
![]() |
Database Visibility
|
![]() |
Import Configuration
Import Configuration |
Export Configuration
Export Batch Size: the batch size used when exporting data.
You have to decide if you want to build a table or not (and make sure the account used in the credentials has the rights to create table, or that specific privilege. Now - if you want to retain some of the records or the structure, then I would suggest running the pre-export & post-export SQL. Pre-export would delete what you want to remove, but retain the database structure. A post command can be issued as a follow up to do activities like rebuild an index or things of that manner.
Pre-export SQL: SQL statement to execute before beginning export, after the
table is created if auto-create is enabled. | |
Credentials The user authentication can be done through a Shared Account or an Individual Account. If you chose to authenticate with an individual account, the user will be prompted to enter a username and password to access this Data Source. If you choose to authenticate with a Shared Account, the following fields are required.
|
public InputStream DatasourceImport(String name, String datasourceId, String itemPath) throws Exception{
String url = "http://localhost:8080/rest/datasource/imports/" + datasourceId + "?itemPath=" + itemPath + "&name=" + name;
HttpClient client = HttpClientBuilder.create().build();
HttpPost postRequest = new HttpPost(url);
// Add Basic Auth Header
String auth = "username:password"; // or ":rest_token"
byte[] encodedAuth = Base64.encodeBase64(auth.getBytes(Charset.forName("UTF-8")));
String authHeader = "Basic " + new String(encodedAuth);
postRequest.addHeader(HttpHeaders.AUTHORIZATION, authHeader);
// execute request
HttpResponse response = client.execute(postRequest);
HttpEntity entity = new BufferedHttpEntity(response.getEntity());
return entity.getContent();
}
Name | Sample |
Status | COMPLETE |
Export Issues | |
Time Started | Mar 5, 2019 11:53 PM |
Time Finished | Mar 5, 2019 11:53 PM |
Exported To | ADJUSTEMENT_V2 |
Exported Location | /SCS03_CORE_VR |
Exported By | 1442272 |
Dataset Name | Sample |
Description | AnswerSet for project "Mahi_RDM_Replace" version 5 |
Version | 3 |
Num Rows | 185 |
Name | PCS_ADJUSTMENTS_TEST |
Status | FAILED |
Export Issues | Paxata cannot create a table at this level within the database hierarchy. |
Time Started | Mar 5, 2019 3:17 PM |
Time Finished | Mar 5, 2019 3:17 PM |
Exported To | PCS_ADJUSTEMENT_V2 |
Exported Location | / |
Exported By | 1442272 |
Dataset Name | Mahi_RDM_Replace_tg |
Description | AnswerSet for project "Mahi_RDM_Replace" version 6 |
Version | 4 |
Num Rows | 185 |