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

Method get_default_instance

sqlparse/lexer.py:49–56  ·  view source on GitHub ↗

Returns the lexer instance used internally by the sqlparse core functions.

(cls)

Source from the content-addressed store, hash-verified

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.

Callers 4

test_float_numbersMethod · 0.80
test_configurable_regexFunction · 0.80
tokenizeFunction · 0.80

Calls 1

Tested by 3

test_float_numbersMethod · 0.64
test_configurable_regexFunction · 0.64