Merging upstream version 11.0.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
fdac67ef7f
commit
ba0f3f0bfa
112 changed files with 126100 additions and 230 deletions
|
@ -7,10 +7,17 @@ from sqlglot.helper import AutoName
|
|||
|
||||
|
||||
class ErrorLevel(AutoName):
|
||||
IGNORE = auto() # Ignore any parser errors
|
||||
WARN = auto() # Log any parser errors with ERROR level
|
||||
RAISE = auto() # Collect all parser errors and raise a single exception
|
||||
IMMEDIATE = auto() # Immediately raise an exception on the first parser error
|
||||
IGNORE = auto()
|
||||
"""Ignore all errors."""
|
||||
|
||||
WARN = auto()
|
||||
"""Log all errors."""
|
||||
|
||||
RAISE = auto()
|
||||
"""Collect all errors and raise a single exception."""
|
||||
|
||||
IMMEDIATE = auto()
|
||||
"""Immediately raise an exception on the first error found."""
|
||||
|
||||
|
||||
class SqlglotError(Exception):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue