This repository was archived by the owner on Apr 19, 2020. It is now read-only.

Synor/database-postgresql

Repository files navigation

Synor DatabaseVersionTestCoverageLicense

Synor Database Engine - PostgreSQL

# using yarn:
yarn add @synor/database-postgresql

# using npm:
npm install --save @synor/database-postgresql

Format: postgresql://[user[:password]@][hostname][:port]/database[?param=value&...]

Params:

NameDescriptionDefault Value
schemaPostgreSQL Schemapublic
sslSSL configurationfalse
synor_migration_record_tableName for Migration Record Tablesynor_migration_record

Examples:

// SSL Example

const ssl = {
  ca: '<path-to-file>',
  cert: '<path-to-file>',
  key: '<path-to-file>',
  passphrase: '<string>',
  rejectUnauthorized: '<boolean>',
  secureOptions: '<number>'
}

const uri = `postgresql://postgres:[email protected]:5432/synor?ssl=${encodeURIComponent(
  JSON.stringify(ssl)
)}`

Licensed under the MIT License. Check the LICENSE file for details.

About

Synor Database Engine - PostgreSQL

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published