Releases: nene/sql-parser-cst
Releases · nene/sql-parser-cst
0.42.0
Breaking changes
- Remove
acceptUnsupportedGrammaroption & dropUnsupportedGrammarStmtnode (9007110) - Rename
BlockStmt.declareClauseto.declare(f7ab9e8) - Combine
ExecuteIntoClausewithinIntoVariablesClause(e814b32, d3b73dc) - Move
IntoVariablesClausetoAllOtherClauses(8d7edca) - Parse
EXECUTEin PL/pgSQL asExecuteImmediateStmt(44e94b9)
PL/pgSQL parsing improvements
- Support declaring aliases:
.. ALIAS FOR .. - Support
MERGE / DELETE / UPDATE / INSERT ... INTO variables - Support
INTO STRICT - Parse
INTOclause differently in PostgreSQL and PL/pgSQL - Support
PERFORM-statement in PL/pgSQL (parsed asSELECTjust with different keyword)
0.41.2
0.41.1
0.41.0
New dialect
Experimental support for PL/pgSQL
Breaking changes
- Rename
error_categorytoerror_bigquery(3f0bfae) - Extract the
WHEN-part fromExceptionClauseto separate clause (fd561a8) - Move
AsClause<>fromAllProcClausestoAllOtherClauses(a962a16) - Unify BigQuery & PL/pgSQL
ASSERTstatements (ac5c1aa) - Support
RAISE USING option = value, ...(c0d49ce) - Support
DECLAREblock beforeBEGIN..END(6f31420) - Support
<<label>>syntax in PL/pgSQL (3ca2558)
0.40.0
0.39.0
Breaking changes
- Support multiple names in
DROP PROCEDURE&DROP FUNCTION(02cb895, cbd0e15) - Use
FunctionSignaturetype inAlterProcedureStmt&AlterFunctionStmt(ebeae15, 88d220d) - Rename
DropFunctionStmt.functionsto.signatures(eac1972) - Don't recognize paren-less functions as plain function calls (15ada0f)
Other changes
- Upgrade to TypeScript 5.x
- Support
SETas column name (but not as implicit alias) - Support interval units (
year,month,...) as column names
0.38.2
0.38.1
0.38.0
Breaking changes to intervals parsing
- Instead of parsing interval literals in PostgreSQL as
IntervalLiteraland in other dialects asIntervalExpr, they are now always parsed asIntervalLiteral(175465f) IntervalDataTypepropertiesfieldsKwandprecisionhave been replaced withunit: IntervalUnit | IntervalUnitRange, making it more similar toIntervalLiteral(fc3f9e6)- Move
IntervalUnitandIntervalUnitRangetypes have been moved fromAllExprNodestoAllDataTypeNodes(2ae45dc)
Improved PostgreSQL intervals support
- Support
INTERVAL '15' SECOND (precision)literal syntax - Support
INTERVAL (precision) '25'literal syntax