{"id":19863251,"url":"https://github.com/allyourcodebase/libpq","last_synced_at":"2025-09-18T16:30:43.422Z","repository":{"id":257219149,"uuid":"857648462","full_name":"allyourcodebase/libpq","owner":"allyourcodebase","description":"PostgreSQL's libpq ported to the zig build system","archived":false,"fork":false,"pushed_at":"2024-12-28T14:29:17.000Z","size":31,"stargazers_count":5,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T15:23:44.321Z","etag":null,"topics":["zig-package"],"latest_commit_sha":null,"homepage":"","language":"C","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/allyourcodebase.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}},"created_at":"2024-09-15T08:17:47.000Z","updated_at":"2024-12-24T13:26:56.000Z","dependencies_parsed_at":"2024-12-28T15:21:03.632Z","dependency_job_id":null,"html_url":"https://github.com/allyourcodebase/libpq","commit_stats":null,"previous_names":["allyourcodebase/libpq"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Flibpq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Flibpq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Flibpq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allyourcodebase%2Flibpq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allyourcodebase","download_url":"https://codeload.github.com/allyourcodebase/libpq/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233497465,"owners_count":18685062,"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","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":["zig-package"],"created_at":"2024-11-12T15:14:08.168Z","updated_at":"2025-09-18T16:30:43.398Z","avatar_url":"https://github.com/allyourcodebase.png","language":"C","readme":"# `build.zig` for libpq\n\nProvides a package to be used by the zig package manager for C programs.\n\n## Status\n\n| Architecture \\ OS | Linux      | MacOS |\n|:------------------|:-----------|-------|\n| x86_64            | ✅         | ✅    |\n| arm 64            | (untested) | ✅    |\n\n| Refname    | PostgreSQL version | Zig `0.15.x` | Zig `0.14.x` | Zig `0.13.x` |\n|------------|--------------------|--------------|--------------|--------------|\n| `5.16.4+4` | `REL_16_4`         | ✅           | ✅           | ❌           |\n| `5.16.4+3` | `REL_16_4`         | ❌           | ✅           | ❌           |\n| `5.16.4+2` | `REL_16_4`         | ❌           | ❌           | ✅           |\n\n## Use\n\nAdd the dependency in your `build.zig.zon` by running the following command:\n```zig\nzig fetch --save git+https://github.com/allyourcodebase/libpq#master\n```\n\nThen, in your `build.zig`:\n```zig\nconst postgres = b.dependency(\"libpq\", { .target = target, .optimize = optimize });\nconst libpq = postgres.artifact(\"pq\");\n\n// wherever needed:\nexe.linkLibrary(libpq);\n```\n\n## Options\n\n```\n  -Dssl=[enum]                 Choose which dependency to use for SSL. Defaults to LibreSSL\n                                 Supported Values:\n                                   OpenSSL\n                                   LibreSSL\n                                   None\n  -Ddisable-zlib=[bool]        Remove zlib as a dependency\n  -Ddisable-zstd=[bool]        Remove zstd as a dependency\n```\n\n## Bump dependencies\n\nTo update this project dependencies:\n\n```bash\nzig fetch --save=upstream git+https://github.com/postgres/postgres#REL_16_4\nzig fetch --save          git+https://github.com/allyourcodebase/openssl#main\nzig fetch --save          git+https://github.com/allyourcodebase/libressl#master\nzig fetch --save          git+https://github.com/allyourcodebase/zlib#main\nzig fetch --save          git+https://github.com/allyourcodebase/zstd#master\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallyourcodebase%2Flibpq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallyourcodebase%2Flibpq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallyourcodebase%2Flibpq/lists"}