Skip to content

CO₂DB

mxcl edited this page Oct 23, 2020 · 4 revisions

CO₂DB

Sublimate utility object wrapping a Fluent Database object.

public class CO₂DB

Properties

db

let db: Database

Returns

The underlying Fluent Database object.

eventLoop

var eventLoop: EventLoop

Returns

The underlying NIO EventLoop object.

Methods

schema(_:)

func schema(_ schema: String) -> SublimateSchemaBuilder

raw(sql:file:line:)

func raw(sql: SQLQueryString, file: String = #file, line: UInt = #line) throws -> SublimateRawBuilder

run(sql:)

@inlinable func run(sql: SQLQueryString) throws