{"id":24746582,"url":"https://github.com/samuelmarks/odbc-cli-c","last_synced_at":"2026-05-09T10:18:30.829Z","repository":{"id":253852761,"uuid":"844677894","full_name":"SamuelMarks/odbc-cli-c","owner":"SamuelMarks","description":"ODBC CLI. Intended for simple use-cases: execution from file or literals; with proper sanitisation.","archived":false,"fork":false,"pushed_at":"2024-08-19T22:34:49.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-28T04:32:00.232Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/SamuelMarks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2024-08-19T18:46:34.000Z","updated_at":"2024-08-19T22:34:52.000Z","dependencies_parsed_at":"2024-08-20T01:53:28.903Z","dependency_job_id":null,"html_url":"https://github.com/SamuelMarks/odbc-cli-c","commit_stats":null,"previous_names":["samuelmarks/odbc-cli-c"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fodbc-cli-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fodbc-cli-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fodbc-cli-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SamuelMarks%2Fodbc-cli-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SamuelMarks","download_url":"https://codeload.github.com/SamuelMarks/odbc-cli-c/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245042141,"owners_count":20551525,"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":"2025-01-28T04:29:28.750Z","updated_at":"2026-05-09T10:18:25.800Z","avatar_url":"https://github.com/SamuelMarks.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"odbc-cli-c\n============\n[![License](https://img.shields.io/badge/license-Apache--2.0%20OR%20MIT-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![CI for Linux, Windows, macOS](https://github.com/SamuelMarks/odbc-cli-c/workflows/CI%20for%20Linux,%20Windows,%20macOS/badge.svg)](https://github.com/SamuelMarks/odbc-cli-c/actions)\n[![CI for FreeBSD](https://api.cirrus-ci.com/github/SamuelMarks/odbc-cli-c.svg)](https://cirrus-ci.com/github/SamuelMarks/odbc-cli-c)\n[![C89](https://img.shields.io/badge/C-89-blue)](https://en.wikipedia.org/wiki/C89_(C_version))\n\nODBC CLI. Intended for simple use-cases: execution from file or literals; with proper sanitisation.\n\n## `--help`\n\n    odbc-cli-c: ODBC CLI\n    \n    Usage:\n    odbc-cli-c...\n    odbc-cli-c --output=\u003co\u003e...\n    odbc-cli-c --command=\u003cc\u003e...\n    odbc-cli-c --command-file=\u003cf\u003e...\n    odbc-cli-c -c=\u003cc\u003e --params=\u003cPARAMS\u003e...\n    odbc-cli-c --help\n    odbc-cli-c --version\n    \n    Options:\n    -h --help                     Show this screen.\n    --version                     Show version.\n    -c=\u003cc\u003e, --command=\u003cc\u003e         Query to execute\n    -f=\u003cc\u003e, --command-file=\u003cc\u003e    Alternative query to execute from file or stdin\n    -p=\u003cp\u003e, --params=\u003cp\u003e          Parameters to provide sanitarily to SQL query\n    -o=\u003co\u003e, --output=\u003co\u003e          Output file. If not specified: will use `stdout`. If specified: will overwrite file.\n\n## Build dependencies\n\n- [CMake](https://cmake.org) (3.19 or later)\n- C compiler (any that work with CMake, and were released within the last 30 years)\n\n### Build\n\n```bash\nmkdir build \u0026\u0026 cd build\ncmake ..\ncmake --build .\n```\n\n### Docker\n\n```bash\ndocker build . -t odbc-cli-c:latest\n```\n\n### CLI interface\n\nGenerated with `docopt`, use `python -m pip install https://api.github.com/repos/offscale/docopt.c/zipball/pyth\non-3-13#egg=docopt_c` then:\n\n```bash\n$ python -m docopt_c '.docopt' -o 'odbc_cli_c/odbc_cli_c'\n```\n\n---\n\n## License\n\nLicensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttps://www.apache.org/licenses/LICENSE-2.0\u003e)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or \u003chttps://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmarks%2Fodbc-cli-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuelmarks%2Fodbc-cli-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmarks%2Fodbc-cli-c/lists"}