{"id":19297347,"url":"https://github.com/decision-labs/libpq.framework","last_synced_at":"2025-10-14T10:46:17.726Z","repository":{"id":2643737,"uuid":"3633267","full_name":"decision-labs/libpq.framework","owner":"decision-labs","description":"An XCode project to compile your own libpq.framework for iOS 11.x","archived":false,"fork":false,"pushed_at":"2018-04-03T08:47:37.000Z","size":675,"stargazers_count":30,"open_issues_count":0,"forks_count":11,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-10-03T11:03:41.880Z","etag":null,"topics":["ios-framework","libpq","postgres","postgresql"],"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/decision-labs.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}},"created_at":"2012-03-06T01:07:57.000Z","updated_at":"2025-01-19T17:50:06.000Z","dependencies_parsed_at":"2022-08-29T06:50:24.727Z","dependency_job_id":null,"html_url":"https://github.com/decision-labs/libpq.framework","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/decision-labs/libpq.framework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decision-labs%2Flibpq.framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decision-labs%2Flibpq.framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decision-labs%2Flibpq.framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decision-labs%2Flibpq.framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/decision-labs","download_url":"https://codeload.github.com/decision-labs/libpq.framework/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decision-labs%2Flibpq.framework/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018784,"owners_count":26086452,"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-10-14T02:00:06.444Z","response_time":60,"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":["ios-framework","libpq","postgres","postgresql"],"created_at":"2024-11-09T23:01:52.327Z","updated_at":"2025-10-14T10:46:17.686Z","avatar_url":"https://github.com/decision-labs.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# libpq.framework for iOS 11\n\n**An XCode project to compile your own libpq.framework for iOS 11.x**\n\n[libpq](http://www.postgresql.org/docs/current/interactive/libpq.html) is a set of library functions that allow client programs to pass queries to the [PostgreSQL](http://www.postgresql.org/) backend database server and to receive the results of these sql queries.\n\nThis repository allows you to easily create a `libpq.framework` to use in your iOS applications.\n\n## Getting Started\n\n`libpq.framework` has no external dependencies apart from `libssl.a` and `libcrypto.a` from OpenSSL, which we download and compile by using the `build-libssl.sh` script so that you can be sure you are downloading it from the official OpenSSL repository. So getting started is easy:\n\n* Install [Git](http://git-scm.com/) and the latest Xcode with the iOS 11.x SDK.\n\n* Make sure that `xcode-select` points to the correct location by running:\n\n    `sudo /usr/bin/xcode-select --switch /Applications/Xcode.app/Contents/Developer`\n\n* Fork this repo from GitHub:\n\n    `git clone git://github.com/spacialdb/libpq.framwework.git`\n\n* Run the script to download and compile OpenSSL:\n\n    `./build-libssl.sh`\n\n* Open `libpq.xcodeproj` with XCode and *build* the framework.\n\n## Download precompiled Framework\n\nYou can also download a precompiled `libpq.framework` from: [libpq.framework.zip](http://bit.ly/libpq-zip)\n\n## Usage\n\nDrop the framework into your project's Navigator and don't forget to copy it to your project, and you should be ready to go. See libpq's [example programs](http://www.postgresql.org/docs/current/interactive/libpq-example.html) for sample code. In general for Objective-C one would need to do something like:\n\n```Objective-C\n#import \u003clibpq/libpq-fe.h\u003e\n\nconst char *_connectionString;\n...\nPGconn *_pgconn = PQconnectdb(_connectionString);\nif (PQstatus(_pgconn) != CONNECTION_OK) {\n    ...\n}\n\nPGresult *res = PQexec(_pgconn, \"BEGIN\");\nif (PQresultStatus(res) != PGRES_TUPLES_OK) {\n    ...\n}\nPQclear(res);\n...\n\nPQfinish(_pgconn);\n```\n\n## Licenses\n\nPostgreSQL is released under the [PostgreSQL](http://www.opensource.org/licenses/postgresql) License, a liberal Open Source license, similar to the BSD or MIT licenses. See the [COPYRIGHT.PostgreSQL](https://github.com/spacialdb/libpq.framework/blob/master/COPYRIGHT.PostgreSQL) file.\n\nThe [OpenSSL](http://www.openssl.org/) toolkit stays under a dual license, i.e. both the conditions of the OpenSSL License and the original SSLeay License apply to the toolkit. See the [LICENSE.OpenSSL](https://github.com/spacialdb/libpq.framework/blob/master/LICENSE.OpenSSL) file for the actual license texts.\n\nThis work itself uses Felix Schulze's `build-libssl.sh` script from the [OpenSSL-for-iPhone](https://github.com/x2on/OpenSSL-for-iPhone) project and Jeff Verkoeyen's [iOS-Framework](https://github.com/jverkoey/iOS-Framework); and is licensed under the MIT license. See the [LICENSE](https://github.com/spacialdb/libpq.framework/blob/master/LICENSE) file for the details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecision-labs%2Flibpq.framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdecision-labs%2Flibpq.framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecision-labs%2Flibpq.framework/lists"}