MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / is_derived_from

Method is_derived_from

lib/sqlalchemy/sql/dml.py:730–738  ·  view source on GitHub ↗

Return ``True`` if this :class:`.ReturnsRows` is 'derived' from the given :class:`.FromClause`. Since these are DMLs, we dont want such statements ever being adapted so we return False for derives.

(self, fromclause: Optional[FromClause])

Source from the content-addressed store, hash-verified

728 return self
729
730 def is_derived_from(self, fromclause: Optional[FromClause]) -> bool:
731 """Return ``True`` if this :class:`.ReturnsRows` is
732 'derived' from the given :class:`.FromClause`.
733
734 Since these are DMLs, we dont want such statements ever being adapted
735 so we return False for derives.
736
737 """
738 return False
739
740 @_generative
741 def returning(

Callers 13

visit_binaryMethod · 0.45
find_join_sourceFunction · 0.45
replaceMethod · 0.45
visit_binaryMethod · 0.45
test_derived_fromMethod · 0.45
test_tableMethod · 0.45
test_aliasMethod · 0.45
test_selectMethod · 0.45

Calls

no outgoing calls

Tested by 6

test_derived_fromMethod · 0.36
test_tableMethod · 0.36
test_aliasMethod · 0.36
test_selectMethod · 0.36
test_joinMethod · 0.36