mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
code cleanup
This commit is contained in:
parent
0a56e3b782
commit
b8513b3ecd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user