├── .github └── workflows │ ├── nodejs.yml │ └── release.yml ├── .gitignore ├── .husky └── pre-commit ├── .oxlintrc.json ├── .prettierignore ├── .prettierrc ├── CHANGELOG.md ├── LICENSE ├── README.md ├── README.zh-CN.md ├── __snapshots__ └── mysql.test.ts.js ├── docker-compose.yml ├── package.json ├── src ├── agent.ts ├── app.ts ├── boot.ts ├── config │ └── config.default.ts ├── index.ts ├── types.ts └── typings │ └── index.d.ts ├── test ├── .setup.ts ├── esm.test.ts ├── fixtures │ └── apps │ │ ├── mysqlapp-disable │ │ ├── config │ │ │ └── config.default.js │ │ └── package.json │ │ ├── mysqlapp-dynamic │ │ ├── agent.js │ │ ├── app.js │ │ ├── app │ │ │ ├── controller │ │ │ │ └── home.js │ │ │ ├── router.js │ │ │ └── service │ │ │ │ └── user.js │ │ ├── config │ │ │ └── config.default.js │ │ └── package.json │ │ ├── mysqlapp-multi-client-wrong │ │ ├── app │ │ │ ├── controller │ │ │ │ └── home.js │ │ │ ├── router.js │ │ │ └── service │ │ │ │ └── user.js │ │ ├── config │ │ │ └── config.default.js │ │ └── package.json │ │ ├── mysqlapp-new │ │ ├── agent.js │ │ ├── app │ │ │ ├── controller │ │ │ │ └── home.js │ │ │ ├── router.js │ │ │ └── service │ │ │ │ └── user.js │ │ ├── config │ │ │ └── config.default.js │ │ └── package.json │ │ ├── mysqlapp-ts-esm │ │ ├── agent.ts │ │ ├── app │ │ │ ├── controller │ │ │ │ └── home.ts │ │ │ ├── router.ts │ │ │ └── service │ │ │ │ └── user.ts │ │ ├── config │ │ │ └── config.ts │ │ ├── package.json │ │ ├── tsconfig.json │ │ └── typings │ │ │ └── index.d.ts │ │ └── mysqlapp │ │ ├── agent.js │ │ ├── app │ │ ├── controller │ │ │ └── home.js │ │ ├── router.js │ │ └── service │ │ │ └── user.js │ │ ├── config │ │ └── config.js │ │ └── package.json ├── mysql.test.ts └── npm_auth.sql └── tsconfig.json /.github/workflows/nodejs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/.github/workflows/nodejs.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | npx lint-staged 2 | -------------------------------------------------------------------------------- /.oxlintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/.oxlintrc.json -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | CHANGELOG.md 2 | __snapshots__ 3 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/.prettierrc -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/README.md -------------------------------------------------------------------------------- /README.zh-CN.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/README.zh-CN.md -------------------------------------------------------------------------------- /__snapshots__/mysql.test.ts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/__snapshots__/mysql.test.ts.js -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/package.json -------------------------------------------------------------------------------- /src/agent.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/src/agent.ts -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/src/app.ts -------------------------------------------------------------------------------- /src/boot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/src/boot.ts -------------------------------------------------------------------------------- /src/config/config.default.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/src/config/config.default.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | import './types.js'; 2 | -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/typings/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/src/typings/index.d.ts -------------------------------------------------------------------------------- /test/.setup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/.setup.ts -------------------------------------------------------------------------------- /test/esm.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/esm.test.ts -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-disable/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-disable/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-disable/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mysqlapp" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-dynamic/agent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-dynamic/agent.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-dynamic/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-dynamic/app.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-dynamic/app/controller/home.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-dynamic/app/controller/home.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-dynamic/app/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-dynamic/app/router.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-dynamic/app/service/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-dynamic/app/service/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-dynamic/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-dynamic/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-dynamic/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mysqlapp-dynamic" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-multi-client-wrong/app/controller/home.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-multi-client-wrong/app/controller/home.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-multi-client-wrong/app/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-multi-client-wrong/app/router.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-multi-client-wrong/app/service/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-multi-client-wrong/app/service/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-multi-client-wrong/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-multi-client-wrong/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-multi-client-wrong/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mysqlapp-multi-client-wrong" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-new/agent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-new/agent.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-new/app/controller/home.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-new/app/controller/home.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-new/app/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-new/app/router.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-new/app/service/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-new/app/service/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-new/config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-new/config/config.default.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-new/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mysqlapp-new" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-ts-esm/agent.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-ts-esm/agent.ts -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-ts-esm/app/controller/home.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-ts-esm/app/controller/home.ts -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-ts-esm/app/router.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-ts-esm/app/router.ts -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-ts-esm/app/service/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-ts-esm/app/service/user.ts -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-ts-esm/config/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-ts-esm/config/config.ts -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-ts-esm/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-ts-esm/package.json -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-ts-esm/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@eggjs/tsconfig" 3 | } 4 | -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp-ts-esm/typings/index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp-ts-esm/typings/index.d.ts -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp/agent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp/agent.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp/app/controller/home.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp/app/controller/home.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp/app/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp/app/router.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp/app/service/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp/app/service/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp/config/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/fixtures/apps/mysqlapp/config/config.js -------------------------------------------------------------------------------- /test/fixtures/apps/mysqlapp/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mysqlapp" 3 | } 4 | -------------------------------------------------------------------------------- /test/mysql.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/mysql.test.ts -------------------------------------------------------------------------------- /test/npm_auth.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/eggjs/mysql/HEAD/test/npm_auth.sql -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@eggjs/tsconfig" 3 | } 4 | --------------------------------------------------------------------------------