{"id":15882698,"url":"https://github.com/fedomn/tx-coordinator","last_synced_at":"2026-01-24T02:39:30.049Z","repository":{"id":43266945,"uuid":"415798741","full_name":"Fedomn/tx-coordinator","owner":"Fedomn","description":"Transaction Coordinator for SQL execution in different database","archived":false,"fork":false,"pushed_at":"2022-07-06T14:52:12.000Z","size":53,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T00:36:25.440Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Fedomn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-11T06:07:07.000Z","updated_at":"2024-03-26T07:21:40.000Z","dependencies_parsed_at":"2022-07-09T02:46:37.480Z","dependency_job_id":null,"html_url":"https://github.com/Fedomn/tx-coordinator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fedomn%2Ftx-coordinator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fedomn%2Ftx-coordinator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fedomn%2Ftx-coordinator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fedomn%2Ftx-coordinator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fedomn","download_url":"https://codeload.github.com/Fedomn/tx-coordinator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243864809,"owners_count":20360360,"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":[],"created_at":"2024-10-06T04:06:32.371Z","updated_at":"2026-01-24T02:39:30.022Z","avatar_url":"https://github.com/Fedomn.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tx-coordinator\n\nTransaction Coordinator for SQL execution in different database\n\n## Features\n\n- guaranteed different database statements in a logic transaction\n- each database only used one connection to execute multiple sql files\n\n## Install\n\ndownload binary from [release](https://github.com/Fedomn/tx-coordinator/releases)\n\n## Usage\n\n```shell\n./txcoordinator --cfg ./cfg.toml --dir ./sqlfiles\n```\n\n### cfg.toml example\n\n```yaml\n[[databases]]\nschema = \"db1\"\nsecret = \"postgres://postgres:@127.0.0.1/db1\"\n\n[[databases]]\nschema = \"db2\"\nsecret = \"postgres://postgres:@127.0.0.1/db2\"\n\n[[databases]]\nschema = \"db3\"\nsecret = \"postgres://postgres:@127.0.0.1/db3\"\n```\n\n### sqlfiles example\n\nfilename pattern: `{sql_index}-{database_name}-{table_name}.sql`\n\n```sql\n0-db1-t0.sql\n1-db1-t1.sql\n0-db2-t.sql\n0-db3-t.sql\n```\n\nIt groups sqlfiles using `database_name` and executes sql in ascending order of `sql_index`. In above example, the ececution order of db1 is *0-db1-t0.sql, 1-db1-t1.sql*\n\n## Simulation operation\n\n- `make db` to start integrated PostgreSQL\n- `make simulate` to simulate real environment rollback operation","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedomn%2Ftx-coordinator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedomn%2Ftx-coordinator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedomn%2Ftx-coordinator/lists"}