{"id":28514828,"url":"https://github.com/facebookincubator/cg-sql","last_synced_at":"2025-07-05T09:32:05.822Z","repository":{"id":37849661,"uuid":"288272839","full_name":"facebookincubator/CG-SQL","owner":"facebookincubator","description":"CG/SQL is a compiler that converts a SQL Stored Procedure like language into C for SQLite.  SQLite has no stored procedures of its own.  CG/CQL can also generate other useful artifacts for testing and schema maintenance.","archived":true,"fork":false,"pushed_at":"2023-05-01T23:31:42.000Z","size":350391,"stargazers_count":398,"open_issues_count":5,"forks_count":34,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-06-09T02:05:10.288Z","etag":null,"topics":["c","c-lang","sql","sqlite"],"latest_commit_sha":null,"homepage":"https://cgsql.dev/","language":"HTML","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/facebookincubator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-17T19:50:33.000Z","updated_at":"2025-06-09T00:42:13.000Z","dependencies_parsed_at":"2023-02-18T04:00:45.948Z","dependency_job_id":null,"html_url":"https://github.com/facebookincubator/CG-SQL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/facebookincubator/CG-SQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebookincubator%2FCG-SQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebookincubator%2FCG-SQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebookincubator%2FCG-SQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebookincubator%2FCG-SQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/facebookincubator","download_url":"https://codeload.github.com/facebookincubator/CG-SQL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/facebookincubator%2FCG-SQL/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263718490,"owners_count":23500847,"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":["c","c-lang","sql","sqlite"],"created_at":"2025-06-09T02:05:09.435Z","updated_at":"2025-07-05T09:32:05.817Z","avatar_url":"https://github.com/facebookincubator.png","language":"HTML","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://cgsql.dev/\"\u003e\n    \u003cimg src=\"website/static/img/CGSQL-Icon.svg\" width=\"20%\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\u003ch1 align=\"center\"\u003e\n  CG/SQL\n\u003c/h1\u003e\n\nCG/SQL is a code generation system for the popular SQLite library that allows developers to write stored procedures in a variant of Transact-SQL (T-SQL) and compile them into C code that uses SQLite’s C API to do the coded operations. CG/SQL enables engineers to create highly complex stored procedures with very large queries, without the manual code checking that existing methods require.\n\nThe full system also includes features for managing and upgrading schema, creating test code for stored procedures, getting query plans for procedures, as well as interfacing with stored procedures from other languages, such as Java and Objective-C. The JSON output allows for the creation of even more analysis or interfacing code. The package includes extensive documentation on the language and system.\n\nFind out more at our [website](https://cgsql.dev/).\n\n## Getting Started\n\nPlease refer to our documentation to start using CG/SQL:\n- [CG/SQL Language Summary](https://cgsql.dev/docs/introduction)\n- [Getting Started with CG/SQL](https://cgsql.dev/docs/getting-started)\n- [Writing a Hello World Program](https://cgsql.dev/cql-guide/ch01#getting-started)\n- [Playground](https://cgsql.dev/docs/playground)\n\nFor Contributors:\n- [Typical Dev Cycle](https://cgsql.dev/docs/dev-notes)\n- [Testing CG/SQL](https://cgsql.dev/docs/testing)\n- [Code Coverage](https://cgsql.dev/docs/code-coverage)\n\n## Licensing\n\nCG/SQL is [MIT-licensed](./LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacebookincubator%2Fcg-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffacebookincubator%2Fcg-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffacebookincubator%2Fcg-sql/lists"}