MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / ctes

Method ctes

test/requirements.py:747–769  ·  view source on GitHub ↗

Target database supports CTEs

(self)

Source from the content-addressed store, hash-verified

745
746 @property
747 def ctes(self):
748 """Target database supports CTEs"""
749 return only_on(
750 [
751 lambda config: against(config, "mysql")
752 and (
753 (
754 config.db.dialect._is_mariadb
755 and config.db.dialect._mariadb_normalized_version_info
756 >= (10, 2)
757 )
758 or (
759 not config.db.dialect._is_mariadb
760 and config.db.dialect.server_version_info >= (8,)
761 )
762 ),
763 "mariadb>10.2",
764 "postgresql",
765 "mssql",
766 "oracle",
767 "sqlite>=3.8.3",
768 ]
769 )
770
771 @property
772 def ctes_with_values(self):

Callers

nothing calls this directly

Calls 2

only_onFunction · 0.90
againstFunction · 0.90

Tested by

no test coverage detected