PostgresNIO Documentation

Structure Postgres​Query

public struct PostgresQuery: Hashable  

A Postgres SQL query, that can be executed on a Postgres server. Contains the raw sql string and bindings.

%7 PostgresQuery PostgresQuery ExpressibleByStringInterpolation ExpressibleByStringInterpolation PostgresQuery->ExpressibleByStringInterpolation Hashable Hashable PostgresQuery->Hashable

Nested Types

PostgresQuery.StringInterpolation

Conforms To

ExpressibleByStringInterpolation
Hashable

Initializers

init(unsafe​SQL:​binds:​)

public init(unsafeSQL sql: String, binds: PostgresBindings = PostgresBindings())  

init(string​Interpolation:​)

public init(stringInterpolation: StringInterpolation)  

init(string​Literal:​)

public init(stringLiteral value: String)  

Properties

sql

public var sql: String

The query string

binds

public var binds: PostgresBindings

The query binds