{"id":20757225,"url":"https://github.com/vapor-community/cpostgresql","last_synced_at":"2025-04-29T08:56:18.365Z","repository":{"id":66562610,"uuid":"52306380","full_name":"vapor-community/cpostgresql","owner":"vapor-community","description":"PostgreSQL C module map","archived":false,"fork":false,"pushed_at":"2017-10-05T22:10:19.000Z","size":8,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-29T08:56:11.870Z","etag":null,"topics":["module-mapper","postgresql"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vapor-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2016-02-22T21:15:29.000Z","updated_at":"2019-08-20T01:03:51.000Z","dependencies_parsed_at":"2023-02-22T16:01:24.849Z","dependency_job_id":null,"html_url":"https://github.com/vapor-community/cpostgresql","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapor-community%2Fcpostgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapor-community%2Fcpostgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapor-community%2Fcpostgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapor-community%2Fcpostgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vapor-community","download_url":"https://codeload.github.com/vapor-community/cpostgresql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251470282,"owners_count":21594524,"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":["module-mapper","postgresql"],"created_at":"2024-11-17T09:40:59.259Z","updated_at":"2025-04-29T08:56:18.350Z","avatar_url":"https://github.com/vapor-community.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CPostgreSQL\n\nThis package is a system module wrapper for *libpq* – the official C library for PostgreSQL –, which must be installed separately before using it in Swift projects.\n\n_Note: the database itself does not need to be running, only the header and library files matter._\n\nChoose one of the following options:\n\n## macOS: Install PostgreSQL via Homebrew (preferred)\n\n1. Visit the https://brew.sh to install Homebrew if it isn't already installed.\n1. Run the following command:\n\n    ```\n    brew install postgresql pkg-config\n    ```\n\n## macOS alternative: Install PostgreSQL with Postgres.app\n\n1. Download Postgres.app from [postgresapp.com](https://postgresapp.com).\n1. Create a [pkgConfig](https://github.com/apple/swift-package-manager/blob/master/Documentation/PackageDescriptionV4.md#pkgconfig) file at `/usr/local/lib/pkgconfig/libpq.pc`\nwith the following content:\n\n    ```\n    path=/Applications/Postgres.app/Contents/Versions/latest\n    Cflags: -I${path}/include\n    Libs: -L${path}/lib -lpq\n    ```\n1. Adjust the path as necessary.\n\n## macOS alternative: Install PostgreSQL with the EnterpriseDB installer\n\n1. Download and run the installer from [enterprisedb.com](https://www.enterprisedb.com/downloads/postgres-postgresql-downloads#macosx).\n1. Create a [pkgConfig](https://github.com/apple/swift-package-manager/blob/master/Documentation/PackageDescriptionV4.md#pkgconfig) file at `/usr/local/lib/pkgconfig/libpq.pc`\nwith the following content:\n\n    ```\n    path=/Library/PostgreSQL/10\n    Cflags: -I${path}/include\n    Libs: -L${path}/lib -lpq\n    ```\n1. Adjust the version number (`10` in the example) to match the installed version.\n\n## Linux: Install PostgreSQL via apt-get\n\nExecute the following commands as the superuser:\n\n```\napt-get update\napt-get upgrade\napt-get install postgresql postgresql-contrib\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvapor-community%2Fcpostgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvapor-community%2Fcpostgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvapor-community%2Fcpostgresql/lists"}