All Projects → decision-labs → libpq.framework

decision-labs / libpq.framework

Licence: MIT, Unknown licenses found Licenses found MIT LICENSE Unknown LICENSE.OpenSSL
An XCode project to compile your own libpq.framework for iOS 11.x

Programming Languages

c
50402 projects - #5 most used programming language
objective c
16641 projects - #2 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to libpq.framework

Node Postgres
PostgreSQL client for node.js.
Stars: ✭ 10,061 (+37162.96%)
Mutual labels:  postgres, libpq
dpq2
This is yet another attempt to create a good interface to PostgreSQL for the D programming language.
Stars: ✭ 56 (+107.41%)
Mutual labels:  postgres, libpq
realtime-flask-experiment
Experimenting with PostgreSQL's Listen/Notify and Flask-SocketIO
Stars: ✭ 22 (-18.52%)
Mutual labels:  postgres
docker-postgresql-pro-1c
Dockerfile для сборки PostgreSQL под 1С:Предприятие 8
Stars: ✭ 27 (+0%)
Mutual labels:  postgres
erdiagram
Entity-Relationship diagram code generator library
Stars: ✭ 28 (+3.7%)
Mutual labels:  postgres
go-pg-crud
Simple Postgres CRUD written in Golang
Stars: ✭ 44 (+62.96%)
Mutual labels:  postgres
general-angular
Realtime Angular Admin/CRUD Front End App
Stars: ✭ 24 (-11.11%)
Mutual labels:  postgres
ChefAPI
API using FastAPI and PostgreSQL for sharing or keeping track of awesome food recipes Based on Oauth2 and JWT 💎
Stars: ✭ 16 (-40.74%)
Mutual labels:  postgres
agent
Job tracker & performance platform
Stars: ✭ 26 (-3.7%)
Mutual labels:  postgres
create-fastify-app
An utility that help you to generate or add plugin to your Fastify project
Stars: ✭ 53 (+96.3%)
Mutual labels:  postgres
terraform-aws-druid
Terraform module to deploy Apache Druid in Kubernetes
Stars: ✭ 16 (-40.74%)
Mutual labels:  postgres
nim-gatabase
Connection-Pooling Compile-Time ORM for Nim
Stars: ✭ 103 (+281.48%)
Mutual labels:  postgres
GCXTrustPolicy
SSL pinning and trust validation framework for iOS
Stars: ✭ 21 (-22.22%)
Mutual labels:  ios-framework
docker-compose-moodle
This project quickly builds a local workspace for Moodle (Apache2, PHP-FPM with XDEBUG y Postgres) using containers for each of its main components. The local workspace is built and managed by Docker Compose
Stars: ✭ 33 (+22.22%)
Mutual labels:  postgres
shuttletracker
🚐 Shuttle tracking for RPI.
Stars: ✭ 44 (+62.96%)
Mutual labels:  postgres
pg migrate
Manage postgres schema, triggers, procedures, and views
Stars: ✭ 25 (-7.41%)
Mutual labels:  postgres
graphql-to-sql
GraphQL model to SQL
Stars: ✭ 13 (-51.85%)
Mutual labels:  postgres
WebRTC
Unofficial builds of Google WebRTC iOS Framework
Stars: ✭ 283 (+948.15%)
Mutual labels:  ios-framework
api.pokedextracker.com
API for pokedextracker.com
Stars: ✭ 38 (+40.74%)
Mutual labels:  postgres
pg-error-enum
TypeScript Enum for Postgres Errors with no runtime dependencies. Also compatible with plain JavaScript.
Stars: ✭ 18 (-33.33%)
Mutual labels:  postgres

libpq.framework for iOS 11

An XCode project to compile your own libpq.framework for iOS 11.x

libpq is a set of library functions that allow client programs to pass queries to the PostgreSQL backend database server and to receive the results of these sql queries.

This repository allows you to easily create a libpq.framework to use in your iOS applications.

Getting Started

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:

  • Install Git and the latest Xcode with the iOS 11.x SDK.

  • Make sure that xcode-select points to the correct location by running:

    sudo /usr/bin/xcode-select --switch /Applications/Xcode.app/Contents/Developer

  • Fork this repo from GitHub:

    git clone git://github.com/spacialdb/libpq.framwework.git

  • Run the script to download and compile OpenSSL:

    ./build-libssl.sh

  • Open libpq.xcodeproj with XCode and build the framework.

Download precompiled Framework

You can also download a precompiled libpq.framework from: libpq.framework.zip

Usage

Drop 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 for sample code. In general for Objective-C one would need to do something like:

#import <libpq/libpq-fe.h>

const char *_connectionString;
...
PGconn *_pgconn = PQconnectdb(_connectionString);
if (PQstatus(_pgconn) != CONNECTION_OK) {
    ...
}

PGresult *res = PQexec(_pgconn, "BEGIN");
if (PQresultStatus(res) != PGRES_TUPLES_OK) {
    ...
}
PQclear(res);
...

PQfinish(_pgconn);

Licenses

PostgreSQL is released under the PostgreSQL License, a liberal Open Source license, similar to the BSD or MIT licenses. See the COPYRIGHT.PostgreSQL file.

The OpenSSL 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 file for the actual license texts.

This work itself uses Felix Schulze's build-libssl.sh script from the OpenSSL-for-iPhone project and Jeff Verkoeyen's iOS-Framework; and is licensed under the MIT license. See the LICENSE file for the details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].