Skip to content

v0.25.0 New flags in Parser: normalize_names=True and silent=False

Compare
Choose a tag to compare
@xnuinside xnuinside released this 07 Feb 21:15
· 196 commits to main since this release

v0.25.0

Fixes:

  1. Fix for issue with 'at time zone' #112

New features:

  1. Added flag to raise errors if parser cannot parse statement DDLParser(.., silent=False) - #109
  2. Added flag to DDLParser(.., normalize_names=True) that change output of parser:
    if flag is True (default 'False') then all identifiers will be returned without '[', '"' and other delimeters that used in different SQL dialects to separate custom names from reserverd words & statements.
    For example, if flag set 'True' and you pass this input:

CREATE TABLE [dbo].[TO_Requests](
[Request_ID] [int] IDENTITY(1,1) NOT NULL,
[user_id] [int]

In output you will have names like 'dbo' and 'TO_Requests', not '[dbo]' and '[TO_Requests]'.