When applying the vapor 4.0 docs to use a URL configuration a build error is produced.
For example using: try app.databases.use(.postgres(url: databaseUrl), as: .psql) instead of app.databases.use(.postgres(hostname: "localhost", username: "vapor", password: "vapor", database: "vapor"), as: .psql) creates the following error:
Sources/App/configure.swift:11:65: error: reference to member 'psql' cannot be resolved without a contextual type
try app.databases.use(.postgres(url: databaseUrl), as: .psql)
When applying the vapor 4.0 docs to use a URL configuration a build error is produced.
For example using:
try app.databases.use(.postgres(url: databaseUrl), as: .psql)
instead ofapp.databases.use(.postgres(hostname: "localhost", username: "vapor", password: "vapor", database: "vapor"), as: .psql)
creates the following error: