From 79776101c8123de5df85330e4a2393a260bd6c87 Mon Sep 17 00:00:00 2001 From: Julien Ripouteau Date: Fri, 15 Mar 2024 16:30:48 +0100 Subject: [PATCH] wip --- package.json | 4 ++-- tests/helpers.ts | 17 ++--------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 942b192..c5ddc19 100644 --- a/package.json +++ b/package.json @@ -30,10 +30,9 @@ "release": "np", "test:sqlite": "DB=sqlite FORCE_COLOR=true node --enable-source-maps --loader=ts-node/esm ./bin/test.js", "test:mysql": "DB=mysql FORCE_COLOR=true node --enable-source-maps --loader=ts-node/esm ./bin/test.js", - "test:mysql_legacy": "DB=mysql_legacy FORCE_COLOR=true node --enable-source-maps --loader=ts-node/esm ./bin/test.js", "test:mssql": "DB=mssql FORCE_COLOR=true node --enable-source-maps --loader=ts-node/esm ./bin/test.js", "test:pg": "DB=pg FORCE_COLOR=true node --enable-source-maps --loader=ts-node/esm ./bin/test.js", - "test:docker": "npm run test:mysql && npm run test:mysql_legacy && npm run test:pg && npm run test:mssql", + "test:docker": "npm run test:mysql && npm run test:pg && npm run test:mssql", "test": "c8 npm run test:docker", "version": "npm run build", "prepublishOnly": "npm run build" @@ -59,6 +58,7 @@ "husky": "^9.0.11", "luxon": "^3.4.4", "mysql": "^2.18.1", + "mysql2": "^3.9.2", "np": "^10.0.1", "pg": "^8.11.3", "prettier": "^3.2.5", diff --git a/tests/helpers.ts b/tests/helpers.ts index ed81c6e..24ff147 100644 --- a/tests/helpers.ts +++ b/tests/helpers.ts @@ -33,9 +33,9 @@ export function getConfig(basePath: string): ConnectionConfig { useNullAsDefault: true, debug: false, } - case 'mysql': + case 'mysql2': return { - client: 'mysql', + client: 'mysql2', connection: { host: process.env.MYSQL_HOST as string, port: Number(process.env.MYSQL_PORT), @@ -45,19 +45,6 @@ export function getConfig(basePath: string): ConnectionConfig { }, useNullAsDefault: true, } - case 'mysql_legacy': - return { - client: 'mysql', - version: '5.7', - connection: { - host: process.env.MYSQL_LEGACY_HOST as string, - port: Number(process.env.MYSQL_LEGACY_PORT), - database: process.env.DB_NAME as string, - user: process.env.MYSQL_LEGACY_USER as string, - password: process.env.MYSQL_LEGACY_PASSWORD as string, - }, - useNullAsDefault: true, - } case 'pg': return { client: 'pg',