postgres-kit
postgres-kit copied to clipboard
🐘 Non-blocking, event-driven Swift client for PostgreSQL.
We use a couple of APIs in PostgresNIO(?) that are deprecated: ``` /Users/timc/Developer/Vapor/postgres-kit/Sources/PostgresKit/PostgresConnectionSource.swift:58:39: warning: 'connect(to:tlsConfiguration:serverHostname:logger:on:)' is deprecated: Use the new connect method that allows you to connect and authenticate in...
This PR adds support for encoding nested JSON. For example, you can encode a Codable datatype that includes other Codable types. You can use this with Codable's polymorphism support to...
**Is your feature request related to a problem? Please describe.** Our problem is how to determine which of our applications is causing problems by observing the Postgres database connections in...
### Describe the bug When decoding a Postgres value into a `RawRepresentable` enum type, if the raw value does not match a valid case of the enum, the following error...
### Describe the bug At some point after 2.3.0, PostgresKit cannot decode Foundation's URL struct stored in database. ### To Reproduce * I am using Vapor and Fluent. But I...
### Describe the bug I've defined a `Codable` enum with associated types with custom encoding to match Swift 5.5's format of `Codable` synthesis (SE-0295). The idea is that I can...
### Describe the bug I can't use enums as dictionary keys. ### To Reproduce Example: ``` enum MyEnum: String, Codable { case one } final class MyModel: Model { static...
The README currently shows how to get a database from a pool: ```swift let postgres = pool.database(logger: ...) // PostgresDatabase let rows = try postgres.simpleQuery("SELECT version();").wait() ``` Should you go...
See https://www.postgresql.org/docs/9.5/sql-createtype.html See `PostgresCreateType`.
### Describe the bug While my connection URL contains "%", e.g. `postgres://user:2kf%[email protected]:5432/db1` - * `URL(string:)` would return nil `PostgresConfiguration(url:)` would failed, `DatabaseConfigurationFactory.postgres()` too. * If I change the URL, make...