@visactor/calculator
Advanced tools
Comparing version 1.2.9 to 1.2.10-alpha.0
import { isArray } from 'lodash'; | ||
import { checkIsColumnNode, replaceString, toFirstUpperCase } from './utils'; | ||
import { FilterNodeType, FilterOperator, OrderType } from 'src/types'; | ||
import { FilterNodeType, FilterOperator, OrderType } from '../types'; | ||
export const from = (query, context) => { | ||
@@ -5,0 +5,0 @@ const { dataSource, fieldInfo } = context; |
import { SimpleFieldInfo } from './type'; | ||
import { TableData } from 'src/types'; | ||
import { TableData } from '../types'; | ||
export declare const queryDataset: (sql: string, fieldInfo: SimpleFieldInfo[], sourceDataset: TableData) => Promise<{ | ||
@@ -4,0 +4,0 @@ dataset: TableData; |
import NodeSQLParser from 'node-sql-parser'; | ||
import { query } from 'src/query'; | ||
import { query } from '../query'; | ||
import { parseRespondField, preprocessSQL } from './utils'; | ||
@@ -4,0 +4,0 @@ import { parseSqlAST } from './parseSqlAST'; |
@@ -1,3 +0,3 @@ | ||
import { TableData } from 'src/types'; | ||
import { TableData } from '../types'; | ||
import { SQLAst, SimpleFieldInfo } from './type'; | ||
export declare const parseSqlAST: (ast: SQLAst, dataSource: TableData, fieldInfo: SimpleFieldInfo[], replaceMap: Map<string, string>) => Partial<import("src/types").Query>; | ||
export declare const parseSqlAST: (ast: SQLAst, dataSource: TableData, fieldInfo: SimpleFieldInfo[], replaceMap: Map<string, string>) => Partial<import("../types").Query>; |
import { Select } from 'node-sql-parser'; | ||
import { Query, TableData } from 'src/types'; | ||
import { Query, TableData } from '../types'; | ||
export type SQLAst = Select; | ||
@@ -4,0 +4,0 @@ export type ASTParserPipe = (query: Partial<Query>, context: ASTParserContext) => Partial<Query>; |
import { ASTParserContext, ASTParserPipe, DataType, ROLE, SimpleFieldInfo } from './type'; | ||
import { Query, TableData } from 'src/types'; | ||
import { Query, TableData } from '../types'; | ||
export declare const execPipeline: (src: Partial<Query>, pipes: ASTParserPipe[], context: ASTParserContext) => Partial<Query>; | ||
@@ -4,0 +4,0 @@ export declare const toFirstUpperCase: (name?: string) => string; |
@@ -6,3 +6,3 @@ "use strict"; | ||
const utils_1 = require("./utils"); | ||
const types_1 = require("src/types"); | ||
const types_1 = require("../types"); | ||
const from = (query, context) => { | ||
@@ -9,0 +9,0 @@ const { dataSource, fieldInfo } = context; |
import { SimpleFieldInfo } from './type'; | ||
import { TableData } from 'src/types'; | ||
import { TableData } from '../types'; | ||
export declare const queryDataset: (sql: string, fieldInfo: SimpleFieldInfo[], sourceDataset: TableData) => Promise<{ | ||
@@ -4,0 +4,0 @@ dataset: TableData; |
@@ -8,3 +8,3 @@ "use strict"; | ||
const node_sql_parser_1 = __importDefault(require("node-sql-parser")); | ||
const query_1 = require("src/query"); | ||
const query_1 = require("../query"); | ||
const utils_1 = require("./utils"); | ||
@@ -11,0 +11,0 @@ const parseSqlAST_1 = require("./parseSqlAST"); |
@@ -1,3 +0,3 @@ | ||
import { TableData } from 'src/types'; | ||
import { TableData } from '../types'; | ||
import { SQLAst, SimpleFieldInfo } from './type'; | ||
export declare const parseSqlAST: (ast: SQLAst, dataSource: TableData, fieldInfo: SimpleFieldInfo[], replaceMap: Map<string, string>) => Partial<import("src/types").Query>; | ||
export declare const parseSqlAST: (ast: SQLAst, dataSource: TableData, fieldInfo: SimpleFieldInfo[], replaceMap: Map<string, string>) => Partial<import("../types").Query>; |
import { Select } from 'node-sql-parser'; | ||
import { Query, TableData } from 'src/types'; | ||
import { Query, TableData } from '../types'; | ||
export type SQLAst = Select; | ||
@@ -4,0 +4,0 @@ export type ASTParserPipe = (query: Partial<Query>, context: ASTParserContext) => Partial<Query>; |
import { ASTParserContext, ASTParserPipe, DataType, ROLE, SimpleFieldInfo } from './type'; | ||
import { Query, TableData } from 'src/types'; | ||
import { Query, TableData } from '../types'; | ||
export declare const execPipeline: (src: Partial<Query>, pipes: ASTParserPipe[], context: ASTParserContext) => Partial<Query>; | ||
@@ -4,0 +4,0 @@ export declare const toFirstUpperCase: (name?: string) => string; |
{ | ||
"name": "@visactor/calculator", | ||
"version": "1.2.9", | ||
"version": "1.2.10-alpha.0", | ||
"description": "SQL-like query executor with DSL", | ||
@@ -39,4 +39,4 @@ "main": "lib", | ||
"@internal/ts-config": "0.0.1", | ||
"@internal/eslint-config": "0.0.1", | ||
"@internal/bundler": "0.0.1" | ||
"@internal/bundler": "0.0.1", | ||
"@internal/eslint-config": "0.0.1" | ||
}, | ||
@@ -43,0 +43,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141888
2