pgsql-ast-parser
Advanced tools
Comparing version 4.1.7 to 4.1.8
{ | ||
"name": "pgsql-ast-parser", | ||
"version": "4.1.7", | ||
"version": "4.1.8", | ||
"description": "Yet another simple Postgres SQL parser/modifier", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -85,3 +85,3 @@ import {compile, keywords} from 'moo'; | ||
// ... to add: "IN" and "NOT IN" that are matched by keywords | ||
match: ['>', '>=', '<', '<=', '@>', '<@', '?', '?|', '?&'], | ||
match: ['>', '>=', '<', '<=', '@>', '<@', '?', '?|', '?&', '#>>'], | ||
}, | ||
@@ -88,0 +88,0 @@ }); |
@@ -502,3 +502,3 @@ // import { IType } from '../../interfaces'; | ||
export type EqualityOperator = 'IN' | 'NOT IN' | 'LIKE' | 'NOT LIKE' | 'ILIKE' | 'NOT ILIKE' | '=' | '!='; | ||
export type ComparisonOperator = '>' | '>=' | '<' | '<=' | '@>' | '<@' | '?' | '?|' | '?&'; | ||
export type ComparisonOperator = '>' | '>=' | '<' | '<=' | '@>' | '<@' | '?' | '?|' | '?&' | '#>>'; | ||
export type AdditiveOperator = '||' | '-' | '#-' | '&&' | '+'; | ||
@@ -505,0 +505,0 @@ export type MultiplicativeOperator = '*' | '%' | '/'; |
@@ -231,2 +231,16 @@ import 'mocha'; | ||
checkTreeExpr(`a#>>b`, { | ||
type: 'binary', | ||
op: '#>>', | ||
left: { | ||
type: 'ref', | ||
name: 'a', | ||
}, | ||
right: { | ||
type: 'ref', | ||
name: 'b', | ||
}, | ||
}); | ||
checkTreeExpr(`a->>-1`, { | ||
@@ -233,0 +247,0 @@ type: 'member', |
@@ -350,3 +350,3 @@ import { nil } from '../utils'; | ||
export declare type EqualityOperator = 'IN' | 'NOT IN' | 'LIKE' | 'NOT LIKE' | 'ILIKE' | 'NOT ILIKE' | '=' | '!='; | ||
export declare type ComparisonOperator = '>' | '>=' | '<' | '<=' | '@>' | '<@' | '?' | '?|' | '?&'; | ||
export declare type ComparisonOperator = '>' | '>=' | '<' | '<=' | '@>' | '<@' | '?' | '?|' | '?&' | '#>>'; | ||
export declare type AdditiveOperator = '||' | '-' | '#-' | '&&' | '+'; | ||
@@ -353,0 +353,0 @@ export declare type MultiplicativeOperator = '*' | '%' | '/'; |
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
1119878
12233