@fastify/postgres
Version:
Fastify PostgreSQL connection plugin
12 lines (9 loc) • 357 B
JavaScript
const BAD_DB_NAME = 'db_that_does_not_exist'
const connectionString = process.env.DATABASE_TEST_URL || 'postgres://postgres:postgres@127.0.0.1/postgres'
const connectionStringBadDbName = connectionString.replace(/\/[^/]+$/, '/' + BAD_DB_NAME)
module.exports = Object.freeze({
BAD_DB_NAME,
connectionString,
connectionStringBadDbName
})