{"id":21393424,"url":"https://github.com/kopera/erlang-sqlc","last_synced_at":"2026-02-12T19:04:50.921Z","repository":{"id":258528744,"uuid":"819340640","full_name":"kopera/erlang-sqlc","owner":"kopera","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-19T09:58:04.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-23T23:11:25.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","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/kopera.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}},"created_at":"2024-06-24T10:04:51.000Z","updated_at":"2024-11-09T16:11:05.000Z","dependencies_parsed_at":"2024-10-19T12:32:38.140Z","dependency_job_id":"ac77c4c9-b71e-4baa-8843-f9f4a32b6a9b","html_url":"https://github.com/kopera/erlang-sqlc","commit_stats":null,"previous_names":["kopera/erlang-sqlc"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kopera/erlang-sqlc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopera%2Ferlang-sqlc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopera%2Ferlang-sqlc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopera%2Ferlang-sqlc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopera%2Ferlang-sqlc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kopera","download_url":"https://codeload.github.com/kopera/erlang-sqlc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopera%2Ferlang-sqlc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29377937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T18:59:55.292Z","status":"ssl_error","status_checked_at":"2026-02-12T18:59:44.289Z","response_time":55,"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":[],"created_at":"2024-11-22T14:11:51.027Z","updated_at":"2026-02-12T19:04:50.905Z","avatar_url":"https://github.com/kopera.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sqlc\n\nSQL compiler for Erlang\n\n## Build\n\n    $ rebar3 compile\n\n## Example\n\n```erlang\n1\u003e {ok, Module} = sqlc:string(example, \"\n    query by_id(:id uuid) returns user as\n        select user_id as id, name, avatar_url, created_at\n            from example.user\n            where user_id = :id;\n\").\n{ok,{codegen,example,\n            [{by_id,1}],\n            [{by_id,[{tree,clause,\n                            {attr,87,[],none},\n                            {clause,[{tree,map_expr,\n                                        {attr,0,[],none},\n                                        {map_expr,none,[{tree,map_field_exact,{attr,...},{...}}]}}],\n                                    none,\n                                    [{tree,map_expr,\n                                        {attr,88,[],none},\n                                        {map_expr,none,\n                                                    [{tree,map_field_assoc,...},{tree,...}]}}]}}]}]}}\n2\u003e io:format(\"~s~n\", [sqlc_module:to_erl(Module)]).\n%% @private\n-module(example).\n\n-export([by_id/1]).\n\nby_id(#{id := Id}) -\u003e\n    #{type =\u003e query,\n    statement =\u003e\n        [\u003c\u003c\"select user_id as id, name, avatar_url, created_at\\n \"\n            \"   from example.user\\n    where user_id = \"\u003e\u003e,\n        \u003c\u003c\"(\"\u003e\u003e,\n        {parameter, #{key =\u003e {example, by_id, id}, value =\u003e Id}},\n        \u003c\u003c\"::\", \"uuid\"\u003e\u003e,\n        \u003c\u003c\")\"\u003e\u003e]}.\nok\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkopera%2Ferlang-sqlc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkopera%2Ferlang-sqlc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkopera%2Ferlang-sqlc/lists"}