Protocol
PostgresDatabase
@preconcurrency protocol PostgresDatabase : Sendable
Topics
Instance Properties
Instance Methods
func logging(to: Logger) -> any PostgresDatabasefunc prepare(query: String) -> EventLoopFuture<PreparedQuery>func prepare(query: String, handler: (PreparedQuery) -> EventLoopFuture<[[PostgresRow]]>) -> EventLoopFuture<[[PostgresRow]]>func query(String, [PostgresData]) -> EventLoopFuture<PostgresQueryResult>func query(String, [PostgresData], onMetadata: (PostgresQueryMetadata) -> (), onRow: (PostgresRow) throws -> ()) -> EventLoopFuture<Void>func send(any PostgresRequest, logger: Logger) -> EventLoopFuture<Void>func simpleQuery(String) -> EventLoopFuture<[PostgresRow]>func simpleQuery(String, (PostgresRow) throws -> ()) -> EventLoopFuture<Void>func withConnection<T>((PostgresConnection) -> EventLoopFuture<T>) -> EventLoopFuture<T>
Relationships
Inherits From
Swift.SendableSwift.SendableMetatype
Conforming Types
See Also
Deprecated APIs
struct PostgresDataprotocol PostgresDataConvertiblestruct PostgresQueryResultprotocol PostgresJSONCodableprotocol PostgresJSONBCodableclass PostgresMessageEncoderclass PostgresMessageDecoderprotocol PostgresRequestProtocol to encapsulate a function call on the Postgres serverstruct PostgresMessageA frontend or backend Postgres message.protocol PostgresMessageTypetypealias PostgresFormatCodeclass PostgresListenContextContext for receiving NotificationResponse messages on a connection, used for PostgreSQL’sLISTEN/NOTIFYsupport.struct PreparedQueryclass SASLAuthenticationManagerprotocol SASLAuthenticationMechanismThe protocol to which all SASL mechanism implementations must conform. It is the responsibility of each individual implementation to provide an API for creating instances of itself which are able to retrieve information from the caller (such as usernames and passwords) by some mechanism.