module.exports = ({ env }) => ({
  connection: {
    client: 'postgres',
    connection: {
      host: process.env.INSTANCE_CONNECTION_NAME,
      port: process.env.DATABASE_PORT,
      database: process.env.DATABASE_NAME,
      user: process.env.DATABASE_USERNAME,
      password: process.env.DATABASE_PASSWORD
    },
    options: {
      pool: {
        min: 0,
        max: 15,
      }
    }
  },
});
