The README currently shows how to get a database from a pool:
let postgres = pool.database(logger: ...) // PostgresDatabase
let rows = try postgres.simpleQuery("SELECT version();").wait()
Should you go through pool whenever you want to query? Or can you keep postgres around and use it for all of your queries?
The README currently shows how to get a database from a pool:
Should you go through
poolwhenever you want to query? Or can you keeppostgresaround and use it for all of your queries?