{"id":27891704,"url":"https://github.com/davidecavestro/123table","last_synced_at":"2025-05-05T12:11:22.818Z","repository":{"id":284597508,"uuid":"955457378","full_name":"davidecavestro/123table","owner":"davidecavestro","description":"a containerized importer for db tables","archived":false,"fork":false,"pushed_at":"2025-04-30T17:19:51.000Z","size":290,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T17:50:09.323Z","etag":null,"topics":["csv","data-import","jdbc","sql","table"],"latest_commit_sha":null,"homepage":"https://davidecavestro.github.io/123table/","language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidecavestro.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2025-03-26T17:06:23.000Z","updated_at":"2025-04-30T17:19:03.000Z","dependencies_parsed_at":"2025-04-14T07:28:43.077Z","dependency_job_id":"020f44a0-fe1e-40ca-914a-5397ad479110","html_url":"https://github.com/davidecavestro/123table","commit_stats":null,"previous_names":["davidecavestro/123table"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidecavestro%2F123table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidecavestro%2F123table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidecavestro%2F123table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidecavestro%2F123table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidecavestro","download_url":"https://codeload.github.com/davidecavestro/123table/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252495269,"owners_count":21757228,"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":["csv","data-import","jdbc","sql","table"],"created_at":"2025-05-05T12:11:22.294Z","updated_at":"2025-05-05T12:11:22.810Z","avatar_url":"https://github.com/davidecavestro.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 123table\n\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/davidecavestro/123table?logo=GitHub)](https://github.com/davidecavestro/123table/releases)\n[![build](https://github.com/davidecavestro/123table/actions/workflows/build.yml/badge.svg)](https://github.com/davidecavestro/123table/actions/workflows/build.yml)\n[![coverage](https://raw.githubusercontent.com/davidecavestro/123table/badges/jacoco.svg)](https://davidecavestro.github.io/123table/coverage/)\n\n\n_123table_ is a containerized command line tool that makes it easy to load rows into a database table.\n\n_123table_ reads the rows from a CSV file or db table\nand inserts them into a table for any JDBC-compliant database.\n\n![Duckdb example](/public/assets/123table_duckdb.png)\n\n## Project status\n\nAvailable for beta testing: the implemented features seem to work as expected.\n\u003cbr\u003e\nSee the roadmap below or open a PR for missing features.\n\n\n## Image flavours\n\n_123table_ is packaged into flavours for specific needs\n\n| Flavour       | Suffix      | Pre-warmed | Startup | JDBC drivers | Weight |\n| ------------- | ----------- |:----------:| ------- | ------------ | ------ |\n| Generic       |             | No         | Slow    | Included     | Heavy  |\n| Slim          | `slim`      | No         | Slow    | -            | Light  |\n| Fast          | `fast`      | Yes        | Fast    | Included     | Heavy  |\n| Fast and slim | `fast-slim` | Yes        | Fast    | -            | Light  |\n\n\nWhere the *fast* flavours leverage features from the https://crac.org project\nin order to speed-up the container boot.\n\nSee [Image Flavours](https://davidecavestro.github.io/123table/guide/flavours.html) for more details.\n\n\nThe included drivers are available within the `/drivers` folder.\n\u003cbr\u003e\nCurrently packaged drivers cover the following data sources:\n- csv\n- duckdb\n- h2\n- MS SQLserver\n- MySQL\n- Oracle\n- PostgreSQL\n- sqlite\n\nIf other drivers become needed, just mount a volume or bind-mount\na local folder containing the appropriate jars.\n\nSee [JDBC Drivers](https://davidecavestro.github.io/123table/guide/drivers.html) for more details.\n\n\n## Motivation\n\nBeyond the obvious need to load rows into a db table, this project began\nto **experiment as a developer** with the feasibility and limitations - in\n2025 - of using only Groovy scripts, a Dockerfile and some bash as **a\nminimalist approach to developing a small CLI tool** with some automated\ntest coverage and contnuous integration, but without the bells and whistles\nof build tools.\n\n\n## HOWTOs\n\n\n### Basic usage\n\nGiven a CSV file named _foo.csv_ in the current directory, run\n\n```bash\ndocker run --rm -it \\\n  -v $(pwd):/data ghcr.io/davidecavestro/123table:fast-latest \\\n  -stable foo \\\n  -create \\\n  -url jdbc:sqlite:/data/foo.db\n```\nto load its rows into a newly created *foo* table of a sqlite db.\n\u003cbr\u003e\nReplace the `-url` value with a proper JDBC url for your target db. \n\u003cbr\u003e\nUse the `--help` flag to get the full list of options or see the \n[Getting Started](https://davidecavestro.github.io/123table/guide/getting-started/)\nguide for further details.\n\n\n### How to build locally\n\n```bash\ndocker build -t 123table .\n```\n\n\n### How to run tests locally\n\n#### Containerized tests\n\n```bash\ndocker build --target tests -t 123table-tests . \u0026\u0026 \\\ndocker run --rm -it -v ./target:/target 123table-tests\n```\n\n## Roadmap (sort of)\n\n- [X] Feat: copy from CSV\n- [X] Feat: plain copy - same name and type\n- [x] Feat: field name remapping\n- [ ] Feat: field type remapping (value computed by target type)\n- [X] Feat: field value remapping (value computed by custom code)\n- [x] Feat: support for additional/custom JDBC drivers\n- [x] Feat: copy from db\n- [x] CI: code coverage \u003e 90%\n- [x] CI: automatic tests on push\n- [x] CI: show test coverage\n- [x] CI: release automation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidecavestro%2F123table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidecavestro%2F123table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidecavestro%2F123table/lists"}