mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 00:16:00 +00:00
fied require problem in webpacked app
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
import { parseFilter } from './parseFilter';
|
||||
import { FilterType } from './types';
|
||||
import engines from 'dbgate-engines';
|
||||
import { dumpSqlCondition, treeToSql } from 'dbgate-sqltree';
|
||||
|
||||
const ast = parseFilter(process.argv[2], process.argv[3] as FilterType);
|
||||
|
||||
console.log(JSON.stringify(ast, null, ' '));
|
||||
|
||||
console.log('***************** MS SQL ******************');
|
||||
console.log(treeToSql(engines('mssql'), ast, dumpSqlCondition));
|
||||
|
||||
console.log('***************** MySql *******************');
|
||||
console.log(treeToSql(engines('mysql'), ast, dumpSqlCondition));
|
||||
|
||||
console.log('***************** Postgre *****************');
|
||||
console.log(treeToSql(engines('postgres'), ast, dumpSqlCondition));
|
||||
Reference in New Issue
Block a user