Returns the lexer instance used internally by the sqlparse core functions.
(cls)
| 47 | |
| 48 | @classmethod |
| 49 | def get_default_instance(cls): |
| 50 | """Returns the lexer instance used internally |
| 51 | by the sqlparse core functions.""" |
| 52 | with cls._lock: |
| 53 | if cls._default_instance is None: |
| 54 | cls._default_instance = cls() |
| 55 | cls._default_instance.default_initialization() |
| 56 | return cls._default_instance |
| 57 | |
| 58 | def default_initialization(self): |
| 59 | """Initialize the lexer with default dictionaries. |