MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _compiler

Method _compiler

lib/sqlalchemy/sql/elements.py:324–330  ·  view source on GitHub ↗

Return a compiler appropriate for this ClauseElement, given a Dialect.

(self, dialect: Dialect, **kw: Any)

Source from the content-addressed store, hash-verified

322 return default.StrCompileDialect()
323
324 def _compiler(self, dialect: Dialect, **kw: Any) -> Compiled:
325 """Return a compiler appropriate for this ClauseElement, given a
326 Dialect."""
327
328 if TYPE_CHECKING:
329 assert isinstance(self, ClauseElement)
330 return dialect.statement_compiler(dialect, self, **kw)
331
332 def __str__(self) -> str:
333 return str(self.compile())

Callers 2

compileMethod · 0.95
_compile_w_cacheMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected