{"id":15069019,"url":"https://github.com/hishidama/embulk-input-tsurugidb","last_synced_at":"2026-01-03T05:08:56.852Z","repository":{"id":198991992,"uuid":"701925738","full_name":"hishidama/embulk-input-tsurugidb","owner":"hishidama","description":"Tsurugi DB input plugin for Embulk","archived":false,"fork":false,"pushed_at":"2024-11-13T03:35:13.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T21:32:35.367Z","etag":null,"topics":["embulk-input-plugin","embulk-plugin","java-11","sql","tsurugidb"],"latest_commit_sha":null,"homepage":"https://www.ne.jp/asahi/hishidama/home/tech/embulk/input-tsurugidb.html","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hishidama.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-08T01:24:01.000Z","updated_at":"2024-11-13T03:35:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"223421c1-b25a-4018-9519-1794ee904d19","html_url":"https://github.com/hishidama/embulk-input-tsurugidb","commit_stats":null,"previous_names":["hishidama/embulk-input-tsurugidb"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hishidama%2Fembulk-input-tsurugidb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hishidama%2Fembulk-input-tsurugidb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hishidama%2Fembulk-input-tsurugidb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hishidama%2Fembulk-input-tsurugidb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hishidama","download_url":"https://codeload.github.com/hishidama/embulk-input-tsurugidb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243848920,"owners_count":20357672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["embulk-input-plugin","embulk-plugin","java-11","sql","tsurugidb"],"created_at":"2024-09-25T01:40:04.664Z","updated_at":"2026-01-03T05:08:56.847Z","avatar_url":"https://github.com/hishidama.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tsurugi DB input plugin for Embulk\n\nTsurugi DB input plugin for Embulk loads records from Tsurugi using [Tsubakuro](https://github.com/project-tsurugi/tsubakuro).\n\n## Overview\n\n* **Plugin type**: input\n* Embulk 0.10 or later\n* Java11 or later\n\n## Example\n\n### query\n\n```yaml\nin:\n  type: tsurugidb\n  endpoint: tcp://localhost:12345\n  query: select * from test order by pk;\n```\n\n\n### table\n\n```yaml\nin:\n  type: tsurugidb\n  endpoint: tcp://localhost:12345\n  table: test\n  order_by: pk\n```\n\n\n\n\n## Configuration\n\n* **endpoint**: endpoint for Tsurugi (string, required)\n* credential - one of user/password, auth_token, credentials\n  * **user**: user\n  * **password**: password\n  * **auth_token**: auth token\n  * **credentials**: credential file path\n* **connection_label**: connection label (string, default: `embulk-input-tsurugidb`)\n* **method**: (string, default: `select`)\n* **tx_type**: transaction type (`OCC`, `LTX`, `RTX`) (string, default: `RTX`)\n* **tx_label**: transaction label (string, default: `embulk-input-tsurugidb`)\n* **tx_write_preserve**: (LTX only) write preserve (list of string, defualt: empty list)\n* **tx_inclusive_read_area**: (LTX only) inclusive read area (list of string, defualt: empty list)\n* **tx_exclusive_read_area**: (LTX only) exclusive read area (list of string, defualt: empty list)\n* **tx_priority**: (LTX, RTX only) transaction priority (string, default: `null`)\n* **commit_type**: commit type (string, default: `default`)\n* **session_keep_alive**: session shutdown type (boolean, default: `null`)\n* **session_shutdown_type**: session shutdown type (string, default: `nothing`)\n* if you write SQL directly:\n  * **query**: SQL to run (string)\n* if **query** is not set,\n  * **table**: destination table name (string, required)\n  * **select**: expression of select (string, default: `*`)\n  * **where**: WHERE condition to filter the rows (string, default: no-condition)\n  * **order_by**: expression of ORDER BY to sort rows (string, default: not sorted)\n* **default_timezone**:\n* **column_options**: advanced: key-value pairs where key is a column name and value is options for the column.\n  * **value_type**: ignored\n  * **type**:  Column values are converted to this embulk type. Available values options are: `boolean`, `long`, `double`, `string`, `json`, `timestamp`).\n  * **timestamp_format**:\n  * **timezone**:\n* **connect_timeout**: timeout for establishment of a database connection (integer (seconds), default: 300)\n* **begin_timeout**: timeout for begin transaction (integer (seconds), default: 300)\n* **select_timeout**: timeout for select (integer (seconds), default: 300)\n* **commit_timeout**: timeout for commit (integer (seconds), default: 300)\n* **session_shutdown_timeout**: timeout for session shutdown (integer (seconds), default: 300)\n\n\n## Install\n\n1. install plugin\n   ```\n   $ java -jar embulk-0.11.3.jar install io.github.hishidama.embulk:embulk-input-tsurugidb:1.8.0\n   ```\n\n2. add setting to $HOME/.embulk/embulk.properties\n   ```\n   plugins.input.tsurugidb=maven:io.github.hishidama.embulk:tsurugidb:1.8.0\n   ```\n\n| version       | Tsurugi       | Tsubakuro |\n|---------------|---------------|-----------|\n| 1.0.0         | 1.0.0         | 1.6.0     |\n| 1.1.0         | 1.1.0 - 1.2.0 | 1.7.0     |\n| 1.3.0         | 1.3.0         | 1.8.0     |\n| ...           | ...           | ...       |\n| 1.8.0         | 1.8.0         | 1.13.0    |\n\n\n## Build\n\n### Test\n\n```\n./gradlew test -Pendpoint=tcp://localhost:12345\nls build/reports/tests/test/\n```\n\n### Build to local Maven repository\n\n```\n./gradlew generatePomFileForMavenJavaPublication\nmvn install -f build/publications/mavenJava/pom-default.xml\n./gradlew publishToMavenLocal\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhishidama%2Fembulk-input-tsurugidb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhishidama%2Fembulk-input-tsurugidb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhishidama%2Fembulk-input-tsurugidb/lists"}