{"id":16091007,"url":"https://github.com/abetomo/dump_to_jsonl","last_synced_at":"2026-06-29T15:31:39.010Z","repository":{"id":57621565,"uuid":"330283366","full_name":"abetomo/dump_to_jsonl","owner":"abetomo","description":"Generate JSONL from a `mysqldump` dump file.","archived":false,"fork":false,"pushed_at":"2025-03-12T08:26:32.000Z","size":153,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-12T09:30:32.713Z","etag":null,"topics":["jsonl","mysqldump"],"latest_commit_sha":null,"homepage":"","language":"Go","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/abetomo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-17T00:14:04.000Z","updated_at":"2025-03-12T08:25:33.000Z","dependencies_parsed_at":"2024-01-09T00:27:07.216Z","dependency_job_id":"60bc51cc-e521-4ef3-bfaf-e481028e8d9c","html_url":"https://github.com/abetomo/dump_to_jsonl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abetomo%2Fdump_to_jsonl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abetomo%2Fdump_to_jsonl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abetomo%2Fdump_to_jsonl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abetomo%2Fdump_to_jsonl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abetomo","download_url":"https://codeload.github.com/abetomo/dump_to_jsonl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247378091,"owners_count":20929293,"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":["jsonl","mysqldump"],"created_at":"2024-10-09T15:08:20.525Z","updated_at":"2026-06-29T15:31:38.996Z","avatar_url":"https://github.com/abetomo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dump_to_jsonl\n\nGenerate JSONL from a `mysqldump` dump file.\n\n## Installation\n\n```\n% go get github.com/abetomo/dump_to_jsonl\n```\n\n## Usage\n\n```\nUsage of dump_to_jsonl:\n  -file string\n        dump file\n  -outdir string\n        output directory\n```\n\n## Examples\n\n### one_create\n\n```\n% dump_to_jsonl -file ./test/fixtures/one_create.sql\n{\"category_id\":1,\"created_at\":\"2020-09-09 10:02:35\",\"description\":\"description1,'A':\\\"A\\\"\",\"id\":1,\"name\":\"name1\",\"rate\":1.1}\n{\"category_id\":2,\"created_at\":\"2020-09-09 10:02:46\",\"description\":\"description2,'B':\\\"B\\\"\",\"id\":2,\"name\":\"name2\",\"rate\":2.2}\n```\n\n```\n% cat ./test/fixtures/one_create.sql | dump_to_jsonl\n{\"category_id\":1,\"created_at\":\"2020-09-09 10:02:35\",\"description\":\"description1,'A':\\\"A\\\"\",\"id\":1,\"name\":\"name1\",\"rate\":1.1}\n{\"category_id\":2,\"created_at\":\"2020-09-09 10:02:46\",\"description\":\"description2,'B':\\\"B\\\"\",\"id\":2,\"name\":\"name2\",\"rate\":2.2}\n```\n\n### two_create\n\n```\n% dump_to_jsonl -file ./test/fixtures/two_create.sql\n{\"id\":1,\"json\":\"{\\\"key\\\": \\\"value\\\"}\"}\n{\"id\":2,\"json\":\"{\\\"no\\\": 1}\"}\n{\"category_id\":1,\"created_at\":\"2020-09-09 10:02:35\",\"description\":\"description1,'A':\\\"A\\\"\",\"id\":1,\"name\":\"name1\",\"rate\":1.1}\n{\"category_id\":2,\"created_at\":\"2020-09-09 10:02:46\",\"description\":\"description2,'B':\\\"B\\\"\",\"id\":2,\"name\":\"name2\",\"rate\":2.2}\n```\n\n```\n% dump_to_jsonl -file ./test/fixtures/two_create.sql -outdir /tmp/two_create\n\n% ls /tmp/two_create\njson_table.jsonl  test_table.jsonl\n\n% tail /tmp/two_create/*.jsonl\n==\u003e /tmp/two_create/json_table.jsonl \u003c==\n{\"id\":1,\"json\":\"{\\\"key\\\": \\\"value\\\"}\"}\n{\"id\":2,\"json\":\"{\\\"no\\\": 1}\"}\n\n==\u003e /tmp/two_create/test_table.jsonl \u003c==\n{\"category_id\":1,\"created_at\":\"2020-09-09 10:02:35\",\"description\":\"description1,'A':\\\"A\\\"\",\"id\":1,\"name\":\"name1\",\"rate\":1.1}\n{\"category_id\":2,\"created_at\":\"2020-09-09 10:02:46\",\"description\":\"description2,'B':\\\"B\\\"\",\"id\":2,\"name\":\"name2\",\"rate\":2.2}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabetomo%2Fdump_to_jsonl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabetomo%2Fdump_to_jsonl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabetomo%2Fdump_to_jsonl/lists"}