0.5.2 • Published 3 years ago

@synor/database-postgresql v0.5.2

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

Synor Database Version Coverage License

Synor Database PostgreSQL

Synor Database Engine - PostgreSQL

Installation

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

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

URI

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:

  • 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.

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago