0.1.4 • Published 5 years ago

@phantomchain/core-database-postgres v0.1.4

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

Phantom Core - PostgreSQL Database Provider

Installation

yarn add @phantomchain/core-database-postgres

Configuration

module.exports = {
  initialization: {
    capSQL: true,
    promiseLib: require('bluebird'),
    noLocking: process.env.NODE_ENV === 'test',
  },
  connection: {
    host: process.env.PHANTOM_DB_HOST || 'localhost',
    port: process.env.PHANTOM_DB_PORT || 5432,
    database:
      process.env.PHANTOM_DB_DATABASE ||
      `phantom_${process.env.PHANTOM_NETWORK_NAME}`,
    user: process.env.PHANTOM_DB_USERNAME || 'phantom',
    password: process.env.PHANTOM_DB_PASSWORD || 'password',
  },
}

If you want to see all available configuration properties head over to https://github.com/vitaly-t/pg-promise.

Security

If you discover a security vulnerability within this package, please send an e-mail to security@ark.io. All security vulnerabilities will be promptly addressed.

Credits

License

MIT © ArkEcosystem