Is is possible to use Vapor 3 Postgres Fluent in a standalone script?
问题 I am experimenting with a standalone script that will query a Postgres database using Vapor and Fluent. In a normal Vapor API application this is simply done by: router.get("products") { request in return Product.query(on: request).all() } However, in a standalone script, since there is no "request", I get stuck on what to replace the "request" or DatabaseConnectable with. Here's where I get stuck on: import Fluent import FluentPostgreSQL let databaseConfig = PostgreSQLDatabaseConfig(hostname