DESCRIPTION

This tests the Yancy::Backend::Pg module which uses Mojo::Pg to connect to a Postgres database.

Set the TEST_ONLINE_PG environment variable to a Mojo::Pg connect string to run this script.

To make a local Postgres server:

# In another terminal
$ initdb db
$ postgres -D db

# In the current terminal
$ createdb test
$ export TEST_ONLINE_PG=postgres://localhost/test

SEE ALSO

t/lib/Local/Test.pm, Mojo::Pg, Yancy