MCPcopy
hub / github.com/andialbrecht/sqlparse / clear

Method clear

sqlparse/lexer.py:73–79  ·  view source on GitHub ↗

Clear all syntax configurations. Useful if you want to load a reduced set of syntax configurations. After this call, regexps and keyword dictionaries need to be loaded to make the lexer functional again.

(self)

Source from the content-addressed store, hash-verified

71 self.add_keywords(keywords.KEYWORDS)
72
73 def clear(self):
74 """Clear all syntax configurations.
75 Useful if you want to load a reduced set of syntax configurations.
76 After this call, regexps and keyword dictionaries need to be loaded
77 to make the lexer functional again."""
78 self._SQL_REGEX = []
79 self._keywords = []
80
81 def set_SQL_REGEX(self, SQL_REGEX):
82 """Set the list of regex that will parse the SQL."""

Callers 2

test_configurable_regexFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_configurable_regexFunction · 0.64