We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a8a94f commit cb3c148Copy full SHA for cb3c148
Sources/App/configure.swift
@@ -62,14 +62,15 @@ public func configure(
62
middlewares.use(ErrorMiddleware.self) // Catches errors and converts to HTTP response
63
services.register(middlewares)
64
65
- // Configure a PostgreSQL database
+ // Configure a PostgreSQL database local
66
let config = PostgreSQLDatabaseConfig(
67
hostname: "localhost",
68
port: 5432,
69
username: "metalbee",
70
database: "CupcakesCorner",
71
password: nil,
72
transport: .cleartext)
73
+
74
let postgres = PostgreSQLDatabase(config: config)
75
76
/// Register the configured PostgreSQL database to the database config.
0 commit comments