mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 11:03:57 +00:00
code cleanup
This commit is contained in:
@@ -4,7 +4,6 @@ const sql = require('./sql');
|
|||||||
|
|
||||||
const { DatabaseAnalyser } = require('dbgate-tools');
|
const { DatabaseAnalyser } = require('dbgate-tools');
|
||||||
const { isTypeString, isTypeNumeric } = require('dbgate-tools');
|
const { isTypeString, isTypeNumeric } = require('dbgate-tools');
|
||||||
const { rangeStep } = require('lodash/fp');
|
|
||||||
|
|
||||||
function getColumnInfo({
|
function getColumnInfo({
|
||||||
isNullable,
|
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 {
|
class Analyser extends DatabaseAnalyser {
|
||||||
constructor(pool, driver) {
|
constructor(pool, driver) {
|
||||||
super(pool, driver);
|
super(pool, driver);
|
||||||
|
|||||||
Reference in New Issue
Block a user