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

Synor/database-postgresql

Repository files navigation

Synor Database Version Test Coverage License

Synor Database PostgreSQL

Synor Database Engine - PostgreSQL

Installation

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

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

URI

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

Params:

Name Description Default Value
schema PostgreSQL Schema public
ssl SSL configuration false
synor_migration_record_table Name for Migration Record Table synor_migration_record

Examples:

  • postgresql://postgres:postgres@127.0.0.1:5432/synor?synor_migration_record_table=migration_record
  • postgresql://postgres:postgres@127.0.0.1:5432/synor?schema=synor
// 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:postgres@127.0.0.1:5432/synor?ssl=${encodeURIComponent(
  JSON.stringify(ssl)
)}`

License

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy