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

Method adapt

lib/sqlalchemy/sql/sqltypes.py:1909–1912  ·  view source on GitHub ↗
(self, cls, **kw)

Source from the content-addressed store, hash-verified

1907 return impltype(**kw)
1908
1909 def adapt(self, cls, **kw):
1910 kw["_enums"] = self._enums_argument
1911 kw["_disable_warnings"] = True
1912 return super().adapt(cls, **kw)
1913
1914 def _should_create_constraint(self, compiler, **kw):
1915 if not self._is_impl_for_variant(compiler.dialect, kw):

Callers 8

test_adaptMethod · 0.95
test_adapt_lengthMethod · 0.95
adaptMethod · 0.45
copyMethod · 0.45
adapt_to_emulatedMethod · 0.45
_setup_getitemMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_adaptMethod · 0.76
test_adapt_lengthMethod · 0.76