postgres-nio
postgres-nio copied to clipboard
๐ Non-blocking, event-driven Swift client for PostgreSQL.
Now (1.11.0) `PreparedQuery.execute()` returns `[PostgresRow]`. But sometimes old and rows are required. It's good to return `PostgresQueryResult` (as `PostgresDatabase.query()`) with metadata instead of just rows for prepared queries. And it's...
### Describe the bug Substitution of parameters ($1, $2, ...) to prepared queries fails. E.g. for `Int` value 10 it fails with error message ยซserver: invalid byte sequence for encoding...
Sorry for the noises, didn't know renaming a branch will close its PR. This is duplicate of https://github.com/vapor/postgres-nio/pull/301. ### The Problem Connecting through sockets has been deprecated in recent changes,...
This PR brings us up to speed with current Swift NIO main branch and fixes the warnings that will show up once a new NIO release is cut.
# The problem Right now PostgresNIO doesn't allow queries with bind parameters count more than Int16.max (32768). This is despite Postgres 10+ supporting up to (UInt16.max - 1) parameters (65535)....
### Motivation We want to translate all our APIs to async. ### Changes - Add `listen(_: String) -> PostgresNotificationSequence` function ### Result Async listen is possible.
The current `Listen`/`Notify` is not usable in a structured concurrency context. We should provide something better: ### Goals 1. Provide a new method on connection: ```swift public func listen(_ channel:...
It is useful to be able to ask MySQLNIO to initiate a connection using a preexisting NIO channel. The most obvious use case is SSH tunneling. This should mostly be...
**Is your feature request related to a problem? Please describe.** There is - as far as I can tell - currently no timeout for queries sent to the server. This...
I'm running into a `PostgresNIO.PostgresDecodingError error 1` when decoding the value 1.0 from the query `SELECT 1.0`. In order to make the decoding work, I need to rewrite the query...