{"id":37206732,"url":"https://github.com/doutivity/research-sqlc-go","last_synced_at":"2026-01-14T23:47:41.627Z","repository":{"id":199128939,"uuid":"695342102","full_name":"doutivity/research-sqlc-go","owner":"doutivity","description":" Effective work with SQL in Go","archived":false,"fork":false,"pushed_at":"2023-10-08T20:12:20.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-06-21T19:53:15.752Z","etag":null,"topics":["sqlc"],"latest_commit_sha":null,"homepage":"https://dou.ua/forums/topic/34806/","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/doutivity.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}},"created_at":"2023-09-22T22:44:10.000Z","updated_at":"2023-10-21T08:29:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"40f057ae-e488-4ec4-99ef-ddb065e2cb5a","html_url":"https://github.com/doutivity/research-sqlc-go","commit_stats":null,"previous_names":["doutivity/research-sqlc-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/doutivity/research-sqlc-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doutivity%2Fresearch-sqlc-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doutivity%2Fresearch-sqlc-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doutivity%2Fresearch-sqlc-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doutivity%2Fresearch-sqlc-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doutivity","download_url":"https://codeload.github.com/doutivity/research-sqlc-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doutivity%2Fresearch-sqlc-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28439538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"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":["sqlc"],"created_at":"2026-01-14T23:47:40.993Z","updated_at":"2026-01-14T23:47:41.613Z","avatar_url":"https://github.com/doutivity.png","language":"Go","readme":"# Effective work with SQL in Go\n- [Go: ефективна робота з SQL](https://dou.ua/forums/topic/34806/)\n\n### Support Ukraine 🇺🇦\n- Help Ukraine via [SaveLife fund](https://savelife.in.ua/en/donate-en/)\n- Help Ukraine via [Dignitas fund](https://dignitas.fund/donate/)\n- Help Ukraine via [National Bank of Ukraine](https://bank.gov.ua/en/news/all/natsionalniy-bank-vidkriv-spetsrahunok-dlya-zboru-koshtiv-na-potrebi-armiyi)\n- More info on [war.ukraine.ua](https://war.ukraine.ua/) and [MFA of Ukraine](https://twitter.com/MFA_Ukraine)\n\n### Testing\n```bash\nmake env-up\nmake docker-go-version\nmake docker-pg-version\nmake migrate-up\nmake go-test\nmake env-down\n```\n```bash\nmake env-up\ntime make test\n```\n```text\nreal\t0m16.016s\nuser\t0m0.168s\nsys\t0m0.079s\n```\n\n### Examples\n```yaml\nversion: \"2\"\nsql:\n  - engine: \"postgresql\"\n    queries: \"./internal/storage/postgres/queries/\"\n    schema: \"./internal/storage/postgres/migrations/\"\n\n    gen:\n      go:\n        package: \"dbs\"\n        sql_package: \"database/sql\"\n        out: \"./internal/storage/postgres/dbs\"\n        emit_prepared_queries: true\n```\n```sql\n-- name: CompanyNewAndGetID :one\nINSERT INTO companies (alias, name, created_by, created_at)\nVALUES (@alias, @name, @created_by, @created_at)\nRETURNING id;\n```\n\n### Development\n```bash\nmake create-new-migration-file NAME=migration_name\n```\n```bash\nmkdir -p ./internal/storage/postgres/queries/\n```\n```bash\nmake generate-sqlc\n```\n\n### Tools\n* [github.com/sqlc-dev/sqlc](https://github.com/sqlc-dev/sqlc)\n* [github.com/pressly/goose](https://github.com/pressly/goose)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoutivity%2Fresearch-sqlc-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoutivity%2Fresearch-sqlc-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoutivity%2Fresearch-sqlc-go/lists"}