MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _r_identifiers

Method _r_identifiers

lib/sqlalchemy/sql/compiler.py:8308–8323  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

8306
8307 @util.memoized_property
8308 def _r_identifiers(self):
8309 initial, final, escaped_final = (
8310 re.escape(s)
8311 for s in (
8312 self.initial_quote,
8313 self.final_quote,
8314 self._escape_identifier(self.final_quote),
8315 )
8316 )
8317 r = re.compile(
8318 r"(?:"
8319 r"(?:%(initial)s((?:%(escaped)s|[^%(final)s])+)%(final)s"
8320 r"|([^\.]+))(?=\.|$))+"
8321 % {"initial": initial, "final": final, "escaped": escaped_final}
8322 )
8323 return r
8324
8325 def unformat_identifiers(self, identifiers: str) -> Sequence[str]:
8326 """Unpack 'schema.table.column'-like strings into components."""

Callers

nothing calls this directly

Calls 2

_escape_identifierMethod · 0.95
compileMethod · 0.45

Tested by

no test coverage detected