Skip to content

PostgresDatabase

Josh Wright edited this page Jan 14, 2021 · 3 revisions

PostgresDatabase

A concrete Database for connecting to and querying a PostgreSQL database.

public final class PostgresDatabase: Database

Inheritance

Database

Initializers

init(config:)

Initialize with the given configuration. The configuration will be connected to when a query is run.

public init(config: DatabaseConfig)

Parameters

  • config: the info needed to connect to the database.

Properties

grammar

let grammar: Grammar

migrations

var migrations: [Migration] = []

Methods

runRawQuery(_:values:)

public func runRawQuery(_ sql: String, values: [DatabaseValue]) -> EventLoopFuture<[DatabaseRow]>

shutdown()

public func shutdown() throws
Alchemy
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Fusion
Types
Protocols
Papyrus
Types
Protocols
Clone this wiki locally