Skip to content

Commit

Permalink
Merge pull request #36 from trocco-io/fix_null_handling
Browse files Browse the repository at this point in the history
Fix null handling
  • Loading branch information
d-hrs authored Mar 21, 2024
2 parents b022972 + 3cd32fb commit 2cfb292
Show file tree
Hide file tree
Showing 30 changed files with 1,546 additions and 398 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,22 @@ kintone output plugin for Embulk stores app records from kintone.

## Configuration

- **domain**: kintone domain(FQDN) e.g. devfoo.cybozu.com (string, required)
- **domain**: kintone domain (FQDN) e.g. devfoo.cybozu.com (string, required)
- **username**: kintone username (string, optional)
- **password**: kintone password (string, optional)
- **token**: kintone app token. Username and password or token must be configured. If all of them are provided, this plugin uses username and password (string, optional)
- **app_id**: kintone app id (integer, required)
- **basic_auth_username**: kintone basic auth username Please see kintone basic auth [here](https://jp.cybozu.help/general/en/admin/list_security/list_ip_basic/basic_auth.html) (string, optional)
- **basic_auth_password**: kintone basic auth password (string, optional)
- **basic_auth_username**: kintone basic auth username Please see kintone basic auth [here](https://jp.cybozu.help/general/en/admin/list_security/list_ip_basic/basic_auth.html) (string, optional)
- **basic_auth_password**: kintone basic auth password (string, optional)
- **guest_space_id**: kintone app belongs to guest space, guest space id is required. (integer, optional)
- **mode**: kintone mode (string, required)
- **update_key**: column name to set update key (string, required if mode is update or upsert)
- **update_key**: Column name to set update key (string, required if mode is update or upsert)
- **prefer_nulls**: Whether to set fields to null instead of default value of type when column is null (boolean, default is `false`)
- **ignore_nulls**: Whether to completely ignore fields when column is null (boolean, default is `false`)
- **column_options** advanced: a key-value pairs where key is a column name and value is options for the column.
- **field_code**: field code (string, required)
- **type**: field type (string, required)
- **type**: field type (string, required). See [this page](https://cybozu.dev/ja/kintone/docs/overview/field-types/#field-type-update) for list of available types. However, following types are not yet supported
- `USER_SELECT`, `ORGANIZATION_SELECT`, `GROUP_SELECT`, `FILE`, `SUBTABLE`
- **timezone**: timezone to convert into `date` (string, default is `UTC`)
- **val_sep**: Used to specify multiple checkbox values (string, default is `,`)

Expand All @@ -43,7 +46,6 @@ out:
date_time: {field_code: "datetime", type: "DATETIME"}
```
## Build
```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.embulk.output.kintone;

import java.util.Optional;
import org.embulk.config.Config;
import org.embulk.config.ConfigDefault;
import org.embulk.config.Task;
Expand All @@ -14,7 +13,7 @@ public interface KintoneColumnOption extends Task {

@Config("timezone")
@ConfigDefault("\"UTC\"")
Optional<String> getTimezone();
String getTimezone();

@Config("val_sep")
@ConfigDefault("\",\"")
Expand Down
Loading

0 comments on commit 2cfb292

Please sign in to comment.