Releases: nene/sql-parser-cst
Releases · nene/sql-parser-cst
0.33.0
0.32.0
0.31.1
0.31.0
Breaking changes
- Rename
grant_stmt
togrant_privilege_stmt
, within which:- rename
roles
toprivileges
- rename
users
toroles
- combine
resouceType
andresourceName
to single fieldresource
, referencingGrantResource
node.
- rename
- Rename
revoke_stmt
torevoke_privilege_stmt
, within which:- rename
roles
toprivileges
- rename
users
toroles
- combine
resouceType
andresourceName
to single fieldresource
, referencingGrantResource
node.
- rename
Improved PostgreSQL support
- Support
GRANT
- Support
REVOKE
- Support
GRANT
&CREATE TRIGGER
insideCREATE SCHEMA
- Support
CREATE ROLE
- Support
ALTER ROLE
- Support
DROP ROLE
- Support
CREATE/ALTER/DROP GROUP
as alias forROLE
- Support
CREATE/ALTER/DROP USER
as alias forROLE
- Support
RESET ROLE
- Support
SET ROLE
- Support
ALTER TRIGGER
- Support
DROP TRIGGER
- Support
ALTER DOMAIN .. ADD CONSTRAINT NOT NULL
- Support existing transaction syntax for PostgreSQL
- Support
END [TRANSACTION | WORK]
in PostgreSQL - Support
AND [NO] CHAIN
in transactions
0.30.0
0.29.1
0.29.0
Breaking changes
- Renamed
NamedDataType.nameKw
field to.name
(2b1e63b) - Changed the fields of
CastOperatorExpr
type: (ed61635)expr
->left
dataType
->right
- added
operator
field with single possible value"::"
PostgreSQL improvements:
- Support
CREATE/ALTER/DROP DOMAIN
(fully) (#78) - Support
CREATE/ALTER/DROP TYPE
(partially) (#78) - Support chaining of multiple
::
cast expressions (#85) - Support quoted identifiers as
::
cast operator parameters (#85)
SQLite improvements:
- Support
COLUMN
andKEY
as identifiers in SQLite (#80)
Other fixes
- Fix some mistakes in type definitions (#76)
0.28.1
0.28.0
Breaking changes
- Use
TriggerEventExpr
instead of plainTriggerEvent
(d5ca16d) - Extract
timeKw
fromTriggerEvent
(9e0d309) - Extract
TriggerTarget
fromTriggerEvent
(d37a94b) - Rename
TriggerCondition
toWhenClause
(7cd0758) - Replace
CreateTriggerStmt.eachKw
and.when
fields with.clauses
(56a69b4) - Don't parse unicode escapes in PostgreSQL unicode strings and identifiers (f715a15)
Improved PostgreSQL support
- Support
FILTER()
in aggregate functions - Revert an accidental change to
row_constructor
syntax - Support PostgreSQL
TRIGGER
syntax:- Support
CREATE TRIGGER
- Support
REFERENCING
clause inTRIGGER
- Support trigger timing clause
- Support trigger
FROM
clause - Support
FOR EACH
clause - Support
TRUNCATE
event
- Support
- Support
ALTER PROCEDURE
&ALTER FUNCTION
- Support newline-separated strings,
E'strings'
andU&'strings'
- Support
UESCAPE
in unicode strings & identifiers - Support underscores in number literals
- Update keywords list for PostgreSQL 16 (add
SYSTEM_USER
)