mysql2

v3.11.0
fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS
mysql client server

lint

npm run lint:docs && npm run lint:code

test

poku --debug --include="test/esm,test/unit,test/integration"

prettier

prettier --single-quote --trailing-comma none --write "{lib,test}/**/*.js"

test:bun

poku --debug --platform="bun" --include="test/esm,test/unit,test/integration"

benchmark

node ./benchmarks/benchmark.js

lint:code

eslint index.js promise.js index.d.ts promise.d.ts "typings/**/*.ts" "lib/**/*.js" "test/**/*.{js,cjs,mjs,ts}" "benchmarks/**/*.js"

lint:docs

eslint Contributing.md README.md

precommit

lint-staged

test:deno

deno run --allow-read --allow-env --allow-run npm:poku --debug --platform="deno" --deno-allow="read,env,net,sys" --deno-cjs=".js,.cjs" --include="test/esm,test/unit,test/integration"

wait-port

wait-on

lint:tests

npx prettier --check ./test

eslint-check

eslint --print-config .eslintrc | eslint-config-prettier-check

lint:typings

npx prettier --check ./typings

coverage-test

c8 npm run test

prettier:docs

prettier --single-quote --trailing-comma none --write README.md

test:tsc-build

cd "test/tsc-build" && npx tsc -p "tsconfig.json"

Metadata

  • MIT
  • >= 8.0
  • Andrey Sidorov
  • released 7/27/2024

Downloads