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

@druid-toolkit/query

Package Overview
Dependencies
Maintainers
0
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.22.21 to 0.22.22

2

package.json
{
"name": "@druid-toolkit/query",
"version": "0.22.21",
"version": "0.22.22",
"description": "A collection of utilities for working with Druid queries",

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

import type { SeparatedArray } from '.';
import { SqlColumn } from '.';
import { SqlColumn, SqlTable } from '.';
export interface Parens {

@@ -8,3 +8,4 @@ leftSpacing?: string;

export type Substitutor = (t: SqlBase, stack: SqlBase[]) => SqlBase | undefined;
export type Matcher = (t: SqlBase, stack: SqlBase[]) => boolean;
export type Predicate = (t: SqlBase, stack: SqlBase[]) => boolean;
export type Matcher<T extends SqlBase> = (t: SqlBase, stack: SqlBase[]) => t is T;
export interface PrettifyOptions {

@@ -69,7 +70,12 @@ keywordCasing?: 'preserve';

isPart(): boolean;
some(fn: Matcher): boolean;
every(fn: Matcher): boolean;
collect(fn: Matcher): SqlBase[];
some(fn: Predicate): boolean;
every(fn: Predicate): boolean;
collect<T extends SqlBase>(fn: Matcher<T>): T[];
find<T extends SqlBase>(fn: Matcher<T>): T | undefined;
getColumns(): SqlColumn[];
getUsedColumnNames(): string[];
getTables(): SqlTable[];
getUsedTableNames(): string[];
getFirstTableName(): string | undefined;
getFirstSchema(): string | undefined;
contains(thing: SqlBase): boolean;

@@ -76,0 +82,0 @@ containsColumnName(columnName: string): boolean;

@@ -25,4 +25,2 @@ import type { SqlTypeDesignator, Substitutor } from '../../sql-base';

clearOwnSeparators(): this;
getFirstTableName(): string | undefined;
getFirstSchema(): string | undefined;
hasJoin(): boolean;

@@ -29,0 +27,0 @@ getJoins(): readonly SqlJoinPart[];

@@ -68,4 +68,5 @@ import type { LiteralValue, RefName, SqlOrderByDirection, SqlType } from '.';

* @returns the updated where clause
* @deprecated
*/
changeClauseInWhere(clause: SqlExpression | string): string | SqlExpression;
changeClauseInWhere(clause: SqlExpression | string): SqlExpression;
/**

@@ -75,5 +76,6 @@ * Toggles a specific clause

* @returns the updated where clause
* @deprecated
*/
toggleClauseInWhere(clause: SqlExpression | string): string | SqlExpression;
toggleClauseInWhere(clause: SqlExpression | string): SqlExpression;
}
//# sourceMappingURL=sql-expression.d.ts.map
import type { SqlBaseValue, SqlTypeDesignator, Substitutor } from '../sql-base';
import { SqlBase } from '../sql-base';
import type { SqlOrderByDirection, SqlPartitionedByClause } from '../sql-clause';
import { SqlClusteredByClause, SqlFromClause, SqlGroupByClause, SqlHavingClause, SqlInsertClause, SqlJoinPart, SqlLimitClause, SqlOffsetClause, SqlOrderByClause, SqlOrderByExpression, SqlWhereClause, SqlWithClause, SqlWithPart } from '../sql-clause';
import { SqlReplaceClause } from '../sql-clause/sql-replace-clause/sql-replace-clause';
import { SqlClusteredByClause, SqlFromClause, SqlGroupByClause, SqlHavingClause, SqlInsertClause, SqlJoinPart, SqlLimitClause, SqlOffsetClause, SqlOrderByClause, SqlOrderByExpression, SqlReplaceClause, SqlWhereClause, SqlWithClause, SqlWithPart } from '../sql-clause';
import { SqlExpression } from '../sql-expression';

@@ -142,4 +141,2 @@ import { SqlLiteral } from '../sql-literal/sql-literal';

getFirstFromExpression(): SqlExpression | undefined;
getFirstTableName(): string | undefined;
getFirstSchema(): string | undefined;
hasJoin(): boolean;

@@ -146,0 +143,0 @@ getJoins(): readonly SqlJoinPart[];

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

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