{"id":21393439,"url":"https://github.com/kopera/erlang-pgc","last_synced_at":"2025-07-28T16:05:22.740Z","repository":{"id":83223288,"uuid":"99925932","full_name":"kopera/erlang-pgc","owner":"kopera","description":"Erlang PostgreSQL client","archived":false,"fork":false,"pushed_at":"2024-10-14T13:33:21.000Z","size":286,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-26T09:47:24.098Z","etag":null,"topics":["database","erlang","postgresql","sql"],"latest_commit_sha":null,"homepage":"","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,"zenodo":null}},"created_at":"2017-08-10T13:26:50.000Z","updated_at":"2025-02-26T04:59:48.000Z","dependencies_parsed_at":"2024-02-03T18:30:41.789Z","dependency_job_id":"c0e39201-108b-4426-92c8-57b73071b84f","html_url":"https://github.com/kopera/erlang-pgc","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/kopera/erlang-pgc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopera%2Ferlang-pgc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopera%2Ferlang-pgc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopera%2Ferlang-pgc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopera%2Ferlang-pgc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kopera","download_url":"https://codeload.github.com/kopera/erlang-pgc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kopera%2Ferlang-pgc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267543265,"owners_count":24104537,"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-07-28T02:00:09.689Z","response_time":68,"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":["database","erlang","postgresql","sql"],"created_at":"2024-11-22T14:11:51.833Z","updated_at":"2025-07-28T16:05:22.290Z","avatar_url":"https://github.com/kopera.png","language":"Erlang","readme":"# erlang-pgc\n\nPostgreSQL client for Erlang.\n\n\n## Examples\n\n```erl\n1\u003e {ok, Client} = pgc:start_link(#{address =\u003e {tcp, \"localhost\", 5432}}, #{\n  user =\u003e \"postgres\",\n  password =\u003e \"postgres\",\n  database =\u003e \"postgres\"\n}, #{limit =\u003e 1}).\n{ok, \u003c0.234.0\u003e}\n2\u003e pgc:execute(Client, {\"select 'hello ' || $1 as message\", [\"world\"]}).\n{ok, #{command =\u003e select, columns =\u003e [message], rows =\u003e 1, notices =\u003e []}, [\n  #{message =\u003e \u003c\u003c\"hello world\"\u003e\u003e}\n]}\n3\u003e pgc:execute(Client, {\"select row('hello', $1::text) as record\", [\"world\"]}).\n{ok,#{command =\u003e select, columns =\u003e [record], rows =\u003e 1, notices =\u003e []}, [\n    #{record =\u003e #{1 =\u003e \u003c\u003c\"hello\"\u003e\u003e, 2 =\u003e \u003c\u003c\"world\"\u003e\u003e}}\n]}\n```\n\n## Setup\n\nYou need to add `pgc` as a dependency to your project. If you are using `rebar3`, you can add the following to your `rebar.config`:\n\n```erlang\n{deps, [\n    {pgc, {git, \"git://github.com/kopera/erlang-pgc.git\", {branch, \"main\"}}}\n]}.\n```\n\nAlso ensure that `pgc` is added as a dependency to your application, by\nupdating your `.app.src` file:\n\n```erlang\n{application, my_app, [\n\n    {applications, [\n        kernel,\n        stdlib,\n\n        pgc  % \u003c- You need this in your applications list\n    ]}\n]}.\n```\n\n## Usage\n\nTODO\n\n## Features\n\nTODO\n\n\n## Data representation\n\nTODO","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkopera%2Ferlang-pgc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkopera%2Ferlang-pgc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkopera%2Ferlang-pgc/lists"}