New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@trex-arms/ley-driver-mysql2-esm

Package Overview
Dependencies
Maintainers
3
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trex-arms/ley-driver-mysql2-esm

ESM-compatible mysql2 driver for @lukeed/ley

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
3
Weekly downloads
 
Created
Source

ley-driver-mysql2-esm

ESM-compatible mysql2 driver for @lukeed/ley

how is it different?

instead of your migration looking like this...

const whatever = require('whatever')

exports.up = async client => {
	// ...
}
exports.down = async client => {
	// ...
}

...you can now write your exports like this...

import whatever from 'whatever'

export const up = async client => {
	// ...
}
export const down = async client => {
	// ...
}

✨✨awesome✨✨

how?

npm install mysql2 --save
npm install @trex-arms/ley-driver-mysql2-esm --save

Important: mysql2 must be installed separately. That way, you control which version you want to use.


Then, toss this driver param into your ley.config.js:

{
	driver: require('@trex-arms/ley-driver-mysql2-esm'),
	// ...
}

Or include the driver another way.

license/credit

MIT

Original copyright: Luke Edwards 2021

The code was copied from: https://github.com/lukeed/ley/blob/master/lib/clients/mysql2.js

Keywords

FAQs

Package last updated on 05 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc