mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
17 lines
337 B
JavaScript
17 lines
337 B
JavaScript
|
// Update with your config settings.
|
||
|
|
||
|
const databaseName = 'postgres'
|
||
|
const pg = require('pg')
|
||
|
|
||
|
const connection_url =
|
||
|
process.env.DATABASE_URL ||
|
||
|
`postgres://postgres:@localhost:5432/${databaseName}`
|
||
|
|
||
|
module.exports = {
|
||
|
client: 'pg',
|
||
|
connection: connection_url,
|
||
|
migrations: {
|
||
|
directory: __dirname + '/db/migrations'
|
||
|
}
|
||
|
}
|