Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Apr 19, 2020. It is now read-only.
/ database-mysql Public archive

Synor Database Engine - MySQL

License

Notifications You must be signed in to change notification settings

Synor/database-mysql

Repository files navigation

Synor Database Version Test Coverage License

Synor Database MySQL

Synor Database Engine - MySQL

Installation

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

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

URI

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

Params:

Name Description Default Value
ssl MySQL SSL Options undefined
synor_migration_record_table Name for Migration Record Table synor_migration_record

Examples:

  • mysql://root:root@127.0.0.1:3306/synor?synor_migration_record_table=migration_record
// SSL Example

const ssl = JSON.stringify({
  ca: '<path-to-file>',
  cert: '<path-to-file>',
  ciphers: '<string>',
  key: '<path-to-file>',
  passphrase: '<string>',
  rejectUnauthorized: '<boolean>'
}) // 'Amazon RDS'

const uri = `mysql://root:root@127.0.0.1:3306/synor?ssl=${encodeURIComponent(
  ssl
)}`

License

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.