{"id":13412191,"url":"https://github.com/sqlc-dev/sqlc","last_synced_at":"2025-09-09T20:36:18.177Z","repository":{"id":37334514,"uuid":"193160679","full_name":"sqlc-dev/sqlc","owner":"sqlc-dev","description":"Generate type-safe code from SQL","archived":false,"fork":false,"pushed_at":"2025-09-01T23:13:57.000Z","size":21123,"stargazers_count":15846,"open_issues_count":606,"forks_count":925,"subscribers_count":85,"default_branch":"main","last_synced_at":"2025-09-02T01:04:53.849Z","etag":null,"topics":["code-generator","go","kotlin","mysql","orm","postgresql","python","sql","sqlite"],"latest_commit_sha":null,"homepage":"https://sqlc.dev","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/sqlc-dev.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["kyleconroy"]}},"created_at":"2019-06-21T21:11:35.000Z","updated_at":"2025-09-02T00:38:37.000Z","dependencies_parsed_at":"2023-07-26T17:54:51.315Z","dependency_job_id":"357163a8-f0b6-4ec8-9d8c-908d1d63d109","html_url":"https://github.com/sqlc-dev/sqlc","commit_stats":{"total_commits":1032,"total_committers":155,"mean_commits":6.658064516129032,"dds":0.5562015503875969,"last_synced_commit":"a8a9ff91f32f9495b74b2b2d26ee5947daf7204f"},"previous_names":["kyleconroy/dinosql","sqlc-dev/sqlc","kyleconroy/sqlc"],"tags_count":38,"template":false,"template_full_name":null,"purl":"pkg:github/sqlc-dev/sqlc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlc-dev%2Fsqlc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlc-dev%2Fsqlc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlc-dev%2Fsqlc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlc-dev%2Fsqlc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sqlc-dev","download_url":"https://codeload.github.com/sqlc-dev/sqlc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sqlc-dev%2Fsqlc/sbom","scorecard":{"id":575223,"data":{"date":"2025-08-11","repo":{"name":"github.com/sqlc-dev/sqlc","commit":"fe96e1237e98aa4a3e9d6f8a543ab357b2e827a9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.2,"checks":[{"name":"Maintained","score":10,"reason":"27 commit(s) and 10 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/buf.yml:1","Warn: no topLevel permission defined: .github/workflows/ci-kotlin.yml:1","Warn: no topLevel permission defined: .github/workflows/ci-python.yml:1","Warn: no topLevel permission defined: .github/workflows/ci-typescript.yml:1","Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/gen.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":6,"reason":"Found 12/19 approved changesets -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Fuzzing","score":10,"reason":"project is fuzzed","details":["Info: GoBuiltInFuzzer integration found: internal/codegen/golang/opts/override_test.go:103","Info: GoBuiltInFuzzer integration found: internal/config/config_test.go:72"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/buf.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/buf.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/buf.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/buf.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/buf.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/buf.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-kotlin.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/ci-kotlin.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-kotlin.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/ci-kotlin.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-kotlin.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/ci-kotlin.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-python.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/ci-python.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-python.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/ci-python.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-python.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/ci-python.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-typescript.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/ci-typescript.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-typescript.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/ci-typescript.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-typescript.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/ci-typescript.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:81: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gen.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/gen.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gen.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/gen.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gen.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/sqlc-dev/sqlc/gen.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:2","Warn: containerImage not pinned by hash: Dockerfile:16: pin your Docker image by updating gcr.io/distroless/base-debian12 to gcr.io/distroless/base-debian12@sha256:4f6e739881403e7d50f52a4e574c4e3c88266031fd555303ee2f1ba262523d6a","Warn: goCommand not pinned by hash: .github/workflows/ci.yml:37","Info:   0 out of  15 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned","Info:   6 out of   7 goCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.29.0 not signed: https://api.github.com/repos/sqlc-dev/sqlc/releases/213007211","Warn: release artifact v1.28.0 not signed: https://api.github.com/repos/sqlc-dev/sqlc/releases/195704518","Warn: release artifact v1.27.0 not signed: https://api.github.com/repos/sqlc-dev/sqlc/releases/168783842","Warn: release artifact v1.26.0 not signed: https://api.github.com/repos/sqlc-dev/sqlc/releases/148944178","Warn: release artifact v1.25.0 not signed: https://api.github.com/repos/sqlc-dev/sqlc/releases/135758673","Warn: release artifact v1.29.0 does not have provenance: https://api.github.com/repos/sqlc-dev/sqlc/releases/213007211","Warn: release artifact v1.28.0 does not have provenance: https://api.github.com/repos/sqlc-dev/sqlc/releases/195704518","Warn: release artifact v1.27.0 does not have provenance: https://api.github.com/repos/sqlc-dev/sqlc/releases/168783842","Warn: release artifact v1.26.0 does not have provenance: https://api.github.com/repos/sqlc-dev/sqlc/releases/148944178","Warn: release artifact v1.25.0 does not have provenance: https://api.github.com/repos/sqlc-dev/sqlc/releases/135758673"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-2606 / GHSA-7jwh-3vrq-q3m8 / GHSA-mrww-27vc-gghv","Warn: Project is vulnerable to: GO-2024-2605 / GHSA-m7wr-2xf7-cm9p","Warn: Project is vulnerable to: GO-2024-2567 / GHSA-fqpg-rq76-99pq","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T17:29:57.561Z","repository_id":37334514,"created_at":"2025-08-20T17:29:57.562Z","updated_at":"2025-08-20T17:29:57.562Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274358285,"owners_count":25270678,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","go","kotlin","mysql","orm","postgresql","python","sql","sqlite"],"created_at":"2024-07-30T20:01:21.946Z","updated_at":"2025-09-09T20:36:18.136Z","avatar_url":"https://github.com/sqlc-dev.png","language":"Go","readme":"# sqlc: A SQL Compiler\n\n![go](https://github.com/sqlc-dev/sqlc/workflows/go/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/sqlc-dev/sqlc)](https://goreportcard.com/report/github.com/sqlc-dev/sqlc)\n\nsqlc generates **type-safe code** from SQL. Here's how it works:\n\n1. You write queries in SQL.\n1. You run sqlc to generate code with type-safe interfaces to those queries.\n1. You write application code that calls the generated code.\n\nCheck out [an interactive example](https://play.sqlc.dev/) to see it in action, and the [introductory blog post](https://conroy.org/introducing-sqlc) for the motivation behind sqlc.\n\n## Overview\n\n- [Documentation](https://docs.sqlc.dev)\n- [Installation](https://docs.sqlc.dev/en/latest/overview/install.html)\n- [Playground](https://play.sqlc.dev)\n- [Website](https://sqlc.dev)\n- [Downloads](https://downloads.sqlc.dev/)\n- [Community](https://discord.gg/EcXzGe5SEs)\n\n## Supported languages\n\n- [sqlc-gen-go](https://github.com/sqlc-dev/sqlc-gen-go)\n- [sqlc-gen-kotlin](https://github.com/sqlc-dev/sqlc-gen-kotlin)\n- [sqlc-gen-python](https://github.com/sqlc-dev/sqlc-gen-python)\n- [sqlc-gen-typescript](https://github.com/sqlc-dev/sqlc-gen-typescript)\n\nAdditional languages can be added via [plugins](https://docs.sqlc.dev/en/latest/reference/language-support.html#community-language-support).\n\n## Sponsors\n\nDevelopment is possible thanks to our sponsors. If you would like to support sqlc,\nplease consider [sponsoring on GitHub](https://github.com/sponsors/kyleconroy).\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://riza.io?utm_source=sqlc+readme\"\u003e\u003cimg width=400 src=\"https://sqlc.dev/sponsors/riza-readme.png\" alt=\"Riza.io\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://coder.com?utm_source=sqlc+readme\"\u003e\u003cimg width=200 src=\"https://sqlc.dev/sponsors/coder-readme.png\" alt=\"Coder.com\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://mint.fun?utm_source=sqlc+readme\"\u003e\u003cimg width=200 src=\"https://sqlc.dev/sponsors/mint-readme.png\" alt=\"Mint.fun\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://mux.com?utm_source=sqlc+readme\"\u003e\u003cimg width=200 src=\"https://sqlc.dev/sponsors/mux-readme.png\" alt=\"Mux.com\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/Cyberax\"\u003eCyberax\u003c/a\u003e - \n  \u003ca href=\"https://github.com/NaNuNaNu\"\u003eNaNuNaNu\u003c/a\u003e - \n  \u003ca href=\"https://github.com/Stumble\"\u003eStumble\u003c/a\u003e - \n  \u003ca href=\"https://github.com/WestfalNamur\"\u003eWestfalNamur\u003c/a\u003e - \n  \u003ca href=\"https://github.com/alecthomas\"\u003ealecthomas\u003c/a\u003e - \n  \u003ca href=\"https://github.com/cameronnewman\"\u003ecameronnewman\u003c/a\u003e - \n  \u003ca href=\"https://github.com/danielbprice\"\u003edanielbprice\u003c/a\u003e - \n  \u003ca href=\"https://github.com/davherrmann\"\u003edavherrmann\u003c/a\u003e - \n  \u003ca href=\"https://github.com/dvob\"\u003edvob\u003c/a\u003e - \n  \u003ca href=\"https://github.com/gilcrest\"\u003egilcrest\u003c/a\u003e - \n  \u003ca href=\"https://github.com/gzuidhof\"\u003egzuidhof\u003c/a\u003e - \n  \u003ca href=\"https://github.com/jeffreylo\"\u003ejeffreylo\u003c/a\u003e - \n  \u003ca href=\"https://github.com/mmcloughlin\"\u003emmcloughlin\u003c/a\u003e - \n  \u003ca href=\"https://github.com/ryohei1216\"\u003eryohei1216\u003c/a\u003e - \n  \u003ca href=\"https://github.com/sgielen\"\u003esgielen\u003c/a\u003e\n\u003c/p\u003e\n","funding_links":["https://github.com/sponsors/kyleconroy"],"categories":["Database","Go","Code Generation","ORMs \u0026 Query Builders","HarmonyOS","sqlite","\u003ca name=\"Go\"\u003e\u003c/a\u003eGo"],"sub_categories":["SQL Query Builders","Go","Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqlc-dev%2Fsqlc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsqlc-dev%2Fsqlc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsqlc-dev%2Fsqlc/lists"}