0.7.0 • Published 2 years ago

@synor/database-mysql v0.7.0

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

Synor Database Version Coverage License

Synor Database MySQL

Synor Database Engine - MySQL

Installation

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

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

URI

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

Params:

NameDescriptionDefault Value
sslMySQL SSL Optionsundefined
synor_migration_record_tableName for Migration Record Tablesynor_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.

0.7.0

2 years ago

0.6.3

3 years ago

0.6.2

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago