@druid-toolkit/query
Advanced tools
Comparing version 0.22.13 to 0.22.14
{ | ||
"name": "@druid-toolkit/query", | ||
"version": "0.22.13", | ||
"version": "0.22.14", | ||
"description": "A collection of utilities for working with Druid queries", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -178,2 +178,3 @@ export interface FilePosition { | ||
export type WindowSpec = any; | ||
export type PartitionByClause = any; | ||
export type CommaSeparator = any; | ||
@@ -308,2 +309,3 @@ export type AsSeparator = any; | ||
export type PartitionedByToken = string; | ||
export type PartitionByToken = string; | ||
export type PositionToken = string; | ||
@@ -310,0 +312,0 @@ export type ReplaceToken = string; |
@@ -26,3 +26,3 @@ import type { SqlBaseValue, SqlTypeDesignator, Substitutor } from '../sql-base'; | ||
convertToTable(): SqlExpression; | ||
getAliasName(): string | undefined; | ||
getAliasName(): string; | ||
getOutputName(): string | undefined; | ||
@@ -29,0 +29,0 @@ getUnderlyingExpression(): SqlExpression; |
@@ -80,5 +80,5 @@ import type { SeparatedArray } from '.'; | ||
apply<T>(fn: (self: this) => T): T; | ||
applyIf<T>(condition: unknown, fn: (self: this) => T): T | this; | ||
applyIf<T>(condition: unknown, thenFn: (self: this) => T, elseFn?: (self: this) => T): T | this; | ||
applyForEach<T>(things: readonly T[], fn: (self: this, thing: T, index: number) => this): this; | ||
} | ||
//# sourceMappingURL=sql-base.d.ts.map |
@@ -19,2 +19,3 @@ export * from './sql-clause'; | ||
export * from './sql-extend-clause/sql-extend-clause'; | ||
export * from './sql-partition-by-clause/sql-partition-by-clause'; | ||
//# sourceMappingURL=index.d.ts.map |
import type { LiteralValue, RefName, SqlOrderByDirection, SqlType } from '.'; | ||
import { SqlComparison, SqlOrderByExpression, SqlUnary } from '.'; | ||
import { SqlAlias, SqlComparison, SqlOrderByExpression, SqlUnary } from '.'; | ||
import type { Substitutor } from './sql-base'; | ||
@@ -24,6 +24,5 @@ import { SqlBase } from './sql-base'; | ||
_walkInner(_nextStack: SqlBase[], _fn: Substitutor, _postorder: boolean): SqlExpression | undefined; | ||
as(alias: RefName | string | undefined, forceQuotes?: boolean): SqlExpression; | ||
as(alias: RefName | string, forceQuotes?: boolean): SqlAlias; | ||
ifUnnamedAliasAs(alias: RefName | string, forceQuotes?: boolean): SqlExpression; | ||
convertToTable(): SqlExpression; | ||
getAliasName(): string | undefined; | ||
getOutputName(): string | undefined; | ||
@@ -30,0 +29,0 @@ getUnderlyingExpression(): SqlExpression; |
@@ -8,4 +8,4 @@ import type { SqlBaseValue, SqlTypeDesignator, Substitutor } from '../sql-base'; | ||
windowName?: RefName; | ||
partitionByClause?: SqlPartitionByClause; | ||
orderByClause?: SqlOrderByClause; | ||
partitionByClause?: SqlPartitionByClause; | ||
} | ||
@@ -15,4 +15,4 @@ export declare class SqlWindowSpec extends SqlBase { | ||
readonly windowName?: RefName; | ||
readonly partitionByClause?: SqlPartitionByClause; | ||
readonly orderByClause?: SqlOrderByClause; | ||
readonly partitionByClause?: SqlPartitionByClause; | ||
constructor(options: SqlWindowSpecValue); | ||
@@ -22,2 +22,3 @@ valueOf(): SqlWindowSpecValue; | ||
changeWindowName(windowName: RefName | string | undefined): this; | ||
changePartitionByClause(partitionByClause: SqlPartitionByClause | undefined): this; | ||
changeOrderByClause(orderByClause: SqlOrderByClause | undefined): this; | ||
@@ -24,0 +25,0 @@ _walkInner(nextStack: SqlBase[], fn: Substitutor, postorder: boolean): SqlWindowSpec | 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
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
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
5445048
61011