mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 03:45:59 +00:00
renamed dbgate packages, because of npmjs policy
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { parseFilter } from './parseFilter';
|
||||
import { FilterType } from './types';
|
||||
import engines from '@dbgate/engines';
|
||||
import { dumpSqlCondition, treeToSql } from '@dbgate/sqltree';
|
||||
import engines from 'dbgate-engines';
|
||||
import { dumpSqlCondition, treeToSql } from 'dbgate-sqltree';
|
||||
|
||||
const ast = parseFilter(process.argv[2], process.argv[3] as FilterType);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { isTypeDateTime } from '@dbgate/tools';
|
||||
import { isTypeDateTime } from 'dbgate-tools';
|
||||
|
||||
export type FilterMultipleValuesMode = 'is' | 'is_not' | 'contains' | 'begins' | 'ends';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { isTypeNumber, isTypeString, isTypeLogical, isTypeDateTime } from '@dbgate/tools';
|
||||
import { isTypeNumber, isTypeString, isTypeLogical, isTypeDateTime } from 'dbgate-tools';
|
||||
import { FilterType } from './types';
|
||||
|
||||
export function getFilterType(dataType: string): FilterType {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import P from 'parsimmon';
|
||||
import { FilterType } from './types';
|
||||
import { Condition } from '@dbgate/sqltree';
|
||||
import { TransformType } from '@dbgate/types';
|
||||
import { Condition } from 'dbgate-sqltree';
|
||||
import { TransformType } from 'dbgate-types';
|
||||
|
||||
const whitespace = P.regexp(/\s*/m);
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
// import types from '@dbgate/types';
|
||||
// import types from 'dbgate-types';
|
||||
|
||||
export type FilterType = 'number' | 'string' | 'datetime' | 'logical';
|
||||
|
||||
Reference in New Issue
Block a user