Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
How to make "createPool" fail fast when given a bad connection string? #33
Thanks for creating this library!
I have a question about how to make the following
main :: IO () main = do -- you could read this from some configuration file, -- environment variable or somewhere else instead. -- you will need to either change this connection string OR -- set some environment variables (see -- https://www.postgresql.org/docs/9.5/static/libpq-envars.html) -- to point to a running PostgreSQL server for this example to work. let connStr = "" pool <- initConnectionPool connStr runApp pool
the server will happily start without errors, but throw an exception each time a request is handled (because