From b8513b3ecd6f17efb5f5e55ff45cfe919403f299 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sat, 15 May 2021 21:36:00 +0200 Subject: [PATCH] code cleanup --- plugins/dbgate-plugin-mysql/src/backend/Analyser.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/plugins/dbgate-plugin-mysql/src/backend/Analyser.js b/plugins/dbgate-plugin-mysql/src/backend/Analyser.js index a7d0f6f8..bdb1c343 100644 --- a/plugins/dbgate-plugin-mysql/src/backend/Analyser.js +++ b/plugins/dbgate-plugin-mysql/src/backend/Analyser.js @@ -4,7 +4,6 @@ const sql = require('./sql'); const { DatabaseAnalyser } = require('dbgate-tools'); const { isTypeString, isTypeNumeric } = require('dbgate-tools'); -const { rangeStep } = require('lodash/fp'); function getColumnInfo({ isNullable, @@ -29,12 +28,6 @@ function getColumnInfo({ }; } -function objectTypeToField(type) { - if (type == 'VIEW') return 'views'; - if (type == 'BASE TABLE') return 'tables'; - return null; -} - class Analyser extends DatabaseAnalyser { constructor(pool, driver) { super(pool, driver);