code cleanup

This commit is contained in:
Jan Prochazka 2021-05-15 21:36:00 +02:00
parent 0a56e3b782
commit b8513b3ecd

View File

@ -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);