{"id":31753045,"url":"https://github.com/regb/rules_sqlc","last_synced_at":"2026-02-15T08:32:51.119Z","repository":{"id":318226056,"uuid":"1048034160","full_name":"regb/rules_sqlc","owner":"regb","description":"Bazel rules for sqlc","archived":false,"fork":false,"pushed_at":"2025-10-26T00:20:34.000Z","size":125,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-26T01:03:40.126Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Starlark","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/regb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2025-08-31T19:11:34.000Z","updated_at":"2025-10-26T00:20:38.000Z","dependencies_parsed_at":"2025-10-05T23:35:20.131Z","dependency_job_id":"8405b29a-ad94-4d51-8c14-b381610ec2a8","html_url":"https://github.com/regb/rules_sqlc","commit_stats":null,"previous_names":["regb/rules_sqlc"],"tags_count":1,"template":false,"template_full_name":"bazel-contrib/rules-template","purl":"pkg:github/regb/rules_sqlc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regb%2Frules_sqlc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regb%2Frules_sqlc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regb%2Frules_sqlc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regb%2Frules_sqlc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regb","download_url":"https://codeload.github.com/regb/rules_sqlc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regb%2Frules_sqlc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29473718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T06:58:05.414Z","status":"ssl_error","status_checked_at":"2026-02-15T06:58:05.085Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2025-10-09T17:30:12.201Z","updated_at":"2026-02-15T08:32:51.111Z","avatar_url":"https://github.com/regb.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bazel rules for sqlc\n\nThis is a ruleset to use [sqlc](https://github.com/sqlc-dev/sqlc) with bazel.\n\n## Installation\n\nAdd this to your `MODULE.bazel`:\n\n```starlark\nbazel_dep(name = \"rules_sqlc\", dev_dependency = True)\narchive_override(\n    module_name = \"rules_sqlc\",\n    urls = [\"https://github.com/regb/rules_sqlc/archive/refs/heads/main.tar.gz\"],\n    strip_prefix = \"rules_sqlc-main\",\n    # It is recommended to edit the above URL to a specific commit and the below sha256.\n    # integrity = \"sha256-...\",\n)\n\n\nsqlc = use_extension(\"@rules_sqlc//sqlc:extensions.bzl\", \"sqlc\")\nsqlc.toolchain(sqlc_version = \"1.30.0\")\n```\n\n## Quick Start\n\nWith `go` and `postgres`:\n\n```starlark\nload(\"@rules_sqlc//sqlc:defs.bzl\", \"sqlc_config\", \"sqlc_generate\")\nload(\"@rules_go//go:def.bzl\", \"go_library\")\n\nsqlc_config(\n    name = \"config\",\n    engine = \"postgresql\",\n    package = \"db\",\n    queries = [\":query.sql\"],\n    schema = [\":schema.sql\"],\n)\n\nsqlc_generate(\n    name = \"generate\",\n    config = \":config\",\n)\n\ngo_library(\n    name = \"db\",\n    srcs = [\":generate\"],\n    importpath = \"MODULE_BASE/db\",\n    deps = [\n        \"@com_github_jackc_pgx_v5//:pgx\",\n        \"@com_github_jackc_pgx_v5//pgtype\",\n        \"@com_github_jackc_pgx_v5//pgconn\",\n    ],\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregb%2Frules_sqlc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregb%2Frules_sqlc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregb%2Frules_sqlc/lists"}