Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@druid-toolkit/query

Package Overview
Dependencies
Maintainers
4
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@druid-toolkit/query - npm Package Compare versions

Comparing version 0.18.13 to 0.19.0

types/query-result/index.d.ts

2

package.json
{
"name": "@druid-toolkit/query",
"version": "0.18.13",
"version": "0.19.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -5,6 +5,5 @@ export * from './utils';

export * from './introspect/introspect';
export * from './query-result/column';
export * from './query-result/query-result';
export * from './query-result';
export * from './query-runner/query-runner';
export * from './filter-pattern';
//# sourceMappingURL=index.d.ts.map

@@ -1,2 +0,2 @@

import type { QueryResult } from '../query-result/query-result';
import type { Column, QueryResult } from '../query-result';
import { SqlQuery, SqlTable } from '../sql';

@@ -6,5 +6,7 @@ export interface TableInfo {

}
export interface ColumnInfo {
name: string;
type: string;
interface QueryColumnIntrospectionQuery {
query: string;
header: true;
typesHeader: true;
sqlTypesHeader: true;
}

@@ -14,10 +16,7 @@ export declare class Introspect {

static decodeTableIntrospectionResult(queryResult: QueryResult): TableInfo[];
static getTableColumnIntrospectionQuery(thing: SqlTable | string): SqlQuery;
static decodeTableColumnIntrospectionResult(queryResult: QueryResult): ColumnInfo[];
static getQueryColumnIntrospectionQuery(query: SqlQuery): SqlQuery;
static getQueryColumnSampleQuery(query: SqlQuery): SqlQuery;
static decodeColumnTypesFromPlan(queryPlanResult: QueryResult): string[];
static decodeQueryColumnIntrospectionResult(queryPlanResult: QueryResult, sampleRowResult?: QueryResult): ColumnInfo[];
static decodeColumnIntrospectionResult(queryResult: QueryResult, sampleRowResult?: QueryResult): ColumnInfo[];
static getQueryColumnIntrospectionQuery(query: SqlQuery | SqlTable): SqlQuery;
static getQueryColumnIntrospectionPayload(query: SqlQuery | SqlTable): QueryColumnIntrospectionQuery;
static decodeQueryColumnIntrospectionResult(headerOnlyResult: QueryResult): Column[];
}
export {};
//# sourceMappingURL=introspect.d.ts.map

@@ -1,2 +0,2 @@

import { QueryResult } from '../query-result/query-result';
import { QueryResult } from '../query-result';
import { SqlQuery } from '../sql';

@@ -3,0 +3,0 @@ import type { CancelToken } from './cancel-token';

@@ -13,4 +13,4 @@ import type { SeparatedArray } from '.';

export type SqlTypeDesignator = 'base' | 'type' | 'columnList' | 'extendClause' | 'columnDeclaration' | 'record' | 'query' | 'withQuery' | 'values' | 'withClause' | 'whereClause' | 'orderByExpression' | 'fromClause' | 'offsetClause' | 'orderByClause' | 'havingClause' | 'limitClause' | 'groupByClause' | 'insertClause' | 'replaceClause' | 'partitionedByClause' | 'partitionByClause' | 'clusteredByClause' | 'withPart' | 'joinPart' | 'alias' | 'labeledExpression' | 'betweenPart' | 'likePart' | 'comparison' | 'literal' | 'placeholder' | 'interval' | 'multi' | 'function' | 'case' | 'whenThenPart' | 'column' | 'star' | 'namespace' | 'table' | 'unary' | 'windowSpec';
export type KeywordName = 'all' | 'and' | 'as' | 'case' | 'clusteredBy' | 'decorator' | 'direction' | 'else' | 'end' | 'escape' | 'explainPlanFor' | 'extend' | 'filter' | 'from' | 'groupBy' | 'having' | 'insert' | 'interval' | 'into' | 'join' | 'joinType' | 'limit' | 'not' | 'offset' | 'on' | 'op' | 'orderBy' | 'over' | 'overwrite' | 'partitionBy' | 'partitionedBy' | 'plan' | 'replace' | 'row' | 'select' | 'symmetric' | 'then' | 'timestamp' | 'union' | 'values' | 'when' | 'where' | 'with';
export type SpaceName = 'final' | 'initial' | 'not' | 'postAnd' | 'postArguments' | 'postArrow' | 'postAs' | 'postCase' | 'postCaseExpression' | 'postClusteredBy' | 'postColumn' | 'postColumnDeclarations' | 'postColumns' | 'postDecorator' | 'postDot' | 'postElse' | 'postEscape' | 'postExplainPlanFor' | 'postExpressions' | 'postExtend' | 'postFilter' | 'postFrom' | 'postGroupBy' | 'postHaving' | 'postInsert' | 'postInsertClause' | 'postInterval' | 'postIntervalValue' | 'postInto' | 'postJoin' | 'postJoinType' | 'postLeftParen' | 'postLimit' | 'postNamespace' | 'postOffset' | 'postOn' | 'postOp' | 'postOrderBy' | 'postOver' | 'postOverwrite' | 'postPartitionBy' | 'postPartitionedBy' | 'postReplace' | 'postReplaceClause' | 'postRow' | 'postSelect' | 'postSymmetric' | 'postTable' | 'postThen' | 'postTimestamp' | 'postUnion' | 'postValues' | 'postWhen' | 'postWhenExpressions' | 'postWhere' | 'postWindowName' | 'postWith' | 'postWithClause' | 'preAlias' | 'preAnd' | 'preArrow' | 'preAs' | 'preClusteredByClause' | 'preColumns' | 'preDirection' | 'preElse' | 'preEnd' | 'preEscape' | 'preExtend' | 'preFilter' | 'preFromClause' | 'preGroupByClause' | 'preHavingClause' | 'preJoin' | 'preLeftParen' | 'preLimitClause' | 'preOffsetClause' | 'preOn' | 'preOp' | 'preOrderByClause' | 'preOver' | 'preOverwrite' | 'prePartitionedByClause' | 'preUnion' | 'preWhereClause';
export type KeywordName = 'all' | 'and' | 'as' | 'case' | 'clusteredBy' | 'decorator' | 'direction' | 'else' | 'end' | 'escape' | 'explainPlanFor' | 'extend' | 'filter' | 'from' | 'groupBy' | 'having' | 'insert' | 'interval' | 'into' | 'join' | 'joinType' | 'limit' | 'offset' | 'on' | 'op' | 'orderBy' | 'over' | 'overwrite' | 'partitionBy' | 'partitionedBy' | 'plan' | 'replace' | 'row' | 'select' | 'symmetric' | 'then' | 'timestamp' | 'union' | 'values' | 'when' | 'where' | 'with';
export type SpaceName = 'final' | 'initial' | 'postAnd' | 'postArguments' | 'postArrow' | 'postAs' | 'postCase' | 'postCaseExpression' | 'postClusteredBy' | 'postColumn' | 'postColumnDeclarations' | 'postColumns' | 'postDecorator' | 'postDot' | 'postElse' | 'postEscape' | 'postExplainPlanFor' | 'postExpressions' | 'postExtend' | 'postFilter' | 'postFrom' | 'postGroupBy' | 'postHaving' | 'postInsert' | 'postInsertClause' | 'postInterval' | 'postIntervalValue' | 'postInto' | 'postJoin' | 'postJoinType' | 'postLeftParen' | 'postLimit' | 'postNamespace' | 'postOffset' | 'postOn' | 'postOp' | 'postOrderBy' | 'postOver' | 'postOverwrite' | 'postPartitionBy' | 'postPartitionedBy' | 'postReplace' | 'postReplaceClause' | 'postRow' | 'postSelect' | 'postSymmetric' | 'postTable' | 'postThen' | 'postTimestamp' | 'postUnion' | 'postValues' | 'postWhen' | 'postWhenExpressions' | 'postWhere' | 'postWindowName' | 'postWith' | 'postWithClause' | 'preAlias' | 'preAnd' | 'preArrow' | 'preAs' | 'preClusteredByClause' | 'preColumns' | 'preDirection' | 'preElse' | 'preEnd' | 'preEscape' | 'preExtend' | 'preFilter' | 'preFromClause' | 'preGroupByClause' | 'preHavingClause' | 'preJoin' | 'preLeftParen' | 'preLimitClause' | 'preOffsetClause' | 'preOn' | 'preOp' | 'preOrderByClause' | 'preOver' | 'preOverwrite' | 'prePartitionedByClause' | 'preUnion' | 'preWhereClause';
export interface SqlBaseValue {

@@ -17,0 +17,0 @@ type?: SqlTypeDesignator;

@@ -5,3 +5,3 @@ import type { SqlBaseValue, SqlTypeDesignator, Substitutor } from '../sql-base';

import type { LiteralValue } from '../sql-literal/sql-literal';
export type SqlComparisonOp = '=' | '<>' | '<' | '>' | '<=' | '>=' | 'IS' | 'IN' | 'LIKE' | 'BETWEEN';
export type SqlComparisonOp = '=' | '<>' | '<' | '>' | '<=' | '>=' | 'IS' | 'IS NOT' | 'IN' | 'NOT IN' | 'LIKE' | 'NOT LIKE' | 'BETWEEN' | 'NOT BETWEEN';
export type SqlComparisonDecorator = 'ALL' | 'ANY';

@@ -18,3 +18,2 @@ export type SpecialLikeType = 'includes' | 'prefix' | 'postfix' | 'exact';

static type: SqlTypeDesignator;
static DEFAULT_NOT_KEYWORD: string;
static equal(lhs: SqlExpression | LiteralValue, rhs: SqlExpression | LiteralValue): SqlComparison;

@@ -37,3 +36,2 @@ static unequal(lhs: SqlExpression | LiteralValue, rhs: SqlExpression | LiteralValue): SqlComparison;

readonly op: SqlComparisonOp;
readonly negated?: boolean;
readonly lhs: SqlExpression;

@@ -48,2 +46,3 @@ readonly decorator?: SqlComparisonDecorator;

negate(): this;
hasNot(): boolean;
_walkInner(nextStack: SqlBase[], fn: Substitutor, postorder: boolean): SqlExpression | undefined;

@@ -50,0 +49,0 @@ getLikeMatchPattern(): string | undefined;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc