{"id":35377549,"url":"https://github.com/peter277/sqlcw","last_synced_at":"2026-01-13T19:29:13.200Z","repository":{"id":331316726,"uuid":"1123502929","full_name":"peter277/sqlcw","owner":"peter277","description":"SQL Code Wrapper: A lightweight preprocessor for embedding SQL code in host programming languages","archived":false,"fork":false,"pushed_at":"2026-01-02T07:45:26.000Z","size":121,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-06T04:57:17.779Z","etag":null,"topics":["code-generator","embedded-sql","mit-license","preprocessor","sql","sql-integration","sql-wrapper"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peter277.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-27T02:36:35.000Z","updated_at":"2026-01-02T07:45:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/peter277/sqlcw","commit_stats":null,"previous_names":["peter277/sqlcw"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/peter277/sqlcw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter277%2Fsqlcw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter277%2Fsqlcw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter277%2Fsqlcw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter277%2Fsqlcw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peter277","download_url":"https://codeload.github.com/peter277/sqlcw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter277%2Fsqlcw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28397826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["code-generator","embedded-sql","mit-license","preprocessor","sql","sql-integration","sql-wrapper"],"created_at":"2026-01-02T04:47:41.012Z","updated_at":"2026-01-13T19:29:13.194Z","avatar_url":"https://github.com/peter277.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿\u003cimg src=\"icon/workflow.png\" align=\"left\" width=\"80\" height=\"80\" style=\"margin-right: 10px; margin-bottom: 10px;\" alt=\"LOGO\"\u003e\n\n# sqlcw - SQL Code Wrapper\n**A lightweight preprocessor for embedding SQL code in host programming languages**\n\u003cbr clear=\"left\"/\u003e\n\nsqlcw wraps SQL statements with configurable prefix and suffix strings, making it easy to embed SQL in C++, Python, or other languages. For example, wrapping with prefix `execute(` and suffix `) by cnxn;` transforms standalone SQL into ready-to-use function calls.\n\nThe tool is SQL syntax-aware and correctly handles quoted strings, identifiers, and comments. Additional options allow you to strip or convert comments and simplify whitespace.\n\n## Usage\nsqlcw is invoked from the command line. Run with `sqlcw --help` to see all available program options:\n\u003cpre\u003e\nOptions:\n\nGeneric:\n  -v [ --version ]                   Print version string\n  -h [ --help ]                      Display this help information\n\nConfiguration:\n  -p [ --prefix ] arg                Prefix to place before SQL statements\n  -s [ --suffix ] arg                Suffix to place after SQL statements\n  -t [ --top ] arg                   Header to place at top of output files\n  -b [ --bottom ] arg                Footer to place at bottom of output files\n  -o [ --out-dir ] arg (=sqlcw-out)  Directory to write output files\n  -x [ --out-ext ] arg               Extension of output files\n  -m [ --comments ] arg (=convert)   Handling of comments: 'strip' or 'convert'\n                                     to /* */ style\n  -w [ --whitespace ] arg            Whitespace processing switches list\n                                     (multitoken option). Values:\n                                       single: compress multiple whitespace\n                                               characters into one (excl.\n                                               newline)\n                                       nonewline: strip off newlines from\n                                                  output\n  --strip-semicolons                 Strip semicolons from SQL statements\n\u003c/pre\u003e\n\n## License\n\nsqlcw is distributed under the [MIT License](LICENSE.md). See the license file for full details and third-party attributions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter277%2Fsqlcw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeter277%2Fsqlcw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter277%2Fsqlcw/lists"}