embulk-input-salesforce_bulk 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +14 -1
- data/build.gradle +1 -1
- data/src/main/java/org/embulk/input/salesforce_bulk/SalesforceBulkWrapper.java +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 203f0037515af477e636cfae75b5e0c09b4889e4
|
|
4
|
+
data.tar.gz: d5d9cbf337bcaf1ceff89f52c02c58ff397c296b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 742b8bc772273d30b3f48d0d0495c1c875984c1e60dbf8061b8541c212a89104a1efe8d55b564e74ac90c32fa57cfe77f9a3b8c7557a34d7906353c94f7d3b65
|
|
7
|
+
data.tar.gz: f13fa2ebf336025985de8134b46d0c89e96caf1b22a16873ff9bfb8ec64902719bd131311e51f8cbadc28c37ef3fec15c91060bab04531209e4878b06dd152e1
|
data/README.md
CHANGED
|
@@ -13,8 +13,9 @@ Salesforce Bulk API の一括クエリ結果を取得します。
|
|
|
13
13
|
|
|
14
14
|
- **userName**: Salesforce user name.(string, required)
|
|
15
15
|
- **password**: Salesforce password.(string, required)
|
|
16
|
-
- **authEndpointUrl**: Salesforce login endpoint URL.(string,
|
|
16
|
+
- **authEndpointUrl**: Salesforce login endpoint URL.(string, default is "https://login.salesforce.com/services/Soap/u/39.0")
|
|
17
17
|
- **objectType**: object type of JobInfo.(string, required)
|
|
18
|
+
- Usually same as query's object.(If **querySelectFrom** is `(snip) FROM xxx (snip)` then **dataType** is `xxx`)
|
|
18
19
|
- **pollingIntervalMillisecond**: polling interval millisecond.(string, default is 30000)
|
|
19
20
|
- **querySelectFrom**: part of query. SELECT and FROM.(string, required)
|
|
20
21
|
- **queryWhere**: part of query. WHERE.(string, default is "")
|
|
@@ -24,6 +25,18 @@ Salesforce Bulk API の一括クエリ結果を取得します。
|
|
|
24
25
|
- **start_row_marker**: 抽出条件に、『カラム「startRowMarkerName」がこの値よりも大きい』を追加する.(string, default is null)
|
|
25
26
|
- **queryAll**: if true, uses the queryAll operation so that deleted records are returned.(boolean, default is false)
|
|
26
27
|
|
|
28
|
+
|
|
29
|
+
### More information about **objectType**:
|
|
30
|
+
|
|
31
|
+
**objectType** is field of JobInfo. See: [JobInfo | Bulk API Developer Guide | Salesforce Developers](https://developer.salesforce.com/docs/atlas.en-us.206.0.api_asynch.meta/api_asynch/asynch_api_reference_jobinfo.htm)
|
|
32
|
+
|
|
33
|
+
These documents will aid in understanding.
|
|
34
|
+
|
|
35
|
+
- [Create a Job | Bulk API Developer Guide | Salesforce Developers](https://developer.salesforce.com/docs/atlas.en-us.206.0.api_asynch.meta/api_asynch/asynch_api_jobs_create.htm)
|
|
36
|
+
- [Add a Batch to a Job | Bulk API Developer Guide | Salesforce Developers](https://developer.salesforce.com/docs/atlas.en-us.206.0.api_asynch.meta/api_asynch/asynch_api_batches_create.htm)
|
|
37
|
+
- [Use Bulk Query | Bulk API Developer Guide | Salesforce Developers](https://developer.salesforce.com/docs/atlas.en-us.206.0.api_asynch.meta/api_asynch/asynch_api_using_bulk_query.htm)
|
|
38
|
+
|
|
39
|
+
|
|
27
40
|
## Example
|
|
28
41
|
|
|
29
42
|
### query で指定したものをすべて抽出
|
data/build.gradle
CHANGED
|
@@ -4,6 +4,8 @@ import java.io.ByteArrayInputStream;
|
|
|
4
4
|
import java.io.IOException;
|
|
5
5
|
import java.io.InputStream;
|
|
6
6
|
|
|
7
|
+
import java.nio.charset.StandardCharsets;
|
|
8
|
+
|
|
7
9
|
import java.util.ArrayList;
|
|
8
10
|
import java.util.HashMap;
|
|
9
11
|
import java.util.List;
|
|
@@ -149,7 +151,7 @@ public class SalesforceBulkWrapper implements AutoCloseable {
|
|
|
149
151
|
new CSVReader(bulkConnection.getQueryResultStream(
|
|
150
152
|
batchInfo.getJobId(),
|
|
151
153
|
batchInfo.getId(),
|
|
152
|
-
queryResultId));
|
|
154
|
+
queryResultId), StandardCharsets.UTF_8.name());
|
|
153
155
|
|
|
154
156
|
// バッチ作成時の CSV 制限は今回関係ないのですべて Integer.MAX_VALUE に設定。
|
|
155
157
|
rdr.setMaxRowsInFile(Integer.MAX_VALUE);
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: embulk-input-salesforce_bulk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- mikoto2000
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-08-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -54,7 +54,7 @@ files:
|
|
|
54
54
|
- classpath/antlr-runtime-3.5.jar
|
|
55
55
|
- classpath/commons-beanutils-1.7.0.jar
|
|
56
56
|
- classpath/commons-logging-1.0.3.jar
|
|
57
|
-
- classpath/embulk-input-salesforce_bulk-0.2.
|
|
57
|
+
- classpath/embulk-input-salesforce_bulk-0.2.2.jar
|
|
58
58
|
- classpath/force-partner-api-39.0.0.jar
|
|
59
59
|
- classpath/force-wsc-39.0.5.jar
|
|
60
60
|
- classpath/jackson-core-asl-1.9.13.jar
|