{"repo":"vapor/postgres-kit","free":true,"listed":false,"github":"https://github.com/vapor/postgres-kit","clone":"git clone https://github.com/vapor/postgres-kit.git","description":"🐘 Non-blocking, event-driven Swift client for PostgreSQL.","language":"Swift","stars":223,"topics":["vapor","server-side-swift","postgresql","async","vapor-service","swift","sql"],"license":"MIT","category":"databases-storage","readme_excerpt":"PostgresKit is an [SQLKit] driver for PostgreSQL clients. Overview PostgresKit supports building and serializing Postgres-dialect SQL queries using [SQLKit]'s API. PostgresKit uses [PostgresNIO] to connect and communicate with the database server asynchronously. [AsyncKit] is used to provide connection pooling. Important: It is strongly recommended that users who leverage PostgresKit directly (e.g. absent the Fluent ORM layer) take advantage of PostgresNIO's [PostgresClient] API for connection management rather than relying upon the legacy AsyncKit API. Usage Reference this package in your Package.swift to include it in your project. Supported Platforms PostgresKit supports the following platforms: - Ubuntu 20.04+ - macOS 10.15+ Configuration Database connection options and credentials are specified using a SQLPostgresConfiguration struct. URL-based configuration is also supported. To connect via unix-domain sockets, use SQLPostgresConfiguration/init(unixDomainSocketPath:username:password:database:) instead of SQLPostgresConfiguration/init(hostname:port:username:password:database:tls:) . Connection Pool (Modern PostgresNIO) You don't need a SQLPostgresConfiguration to create a PostgresClient , an instance of PostgresNIO's modern connection pool. Instead, use PostgresClient 's native configuration type: You can then lease a PostgresConnection from the client: [!NOTE] PostgresClient.Configuration does not support URL-based configuration. If you want to handle URLs, you can crea","default_branch":null,"files":null,"tree":[],"storefront":"/r/vapor","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vapor/postgres-kit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}