MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / copy

Method copy

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

Source from the content-addressed store, hash-verified

2144 self.dispatch = self.dispatch._join(_adapted_from.dispatch)
2145
2146 def copy(self, **kw):
2147 # override SchemaType.copy() to not include to_metadata logic
2148 return self.adapt(
2149 cast("Type[TypeEngine[Any]]", self.__class__),
2150 _create_events=True,
2151 )
2152
2153 def _should_create_constraint(self, compiler, **kw):
2154 if not self._is_impl_for_variant(compiler.dialect, kw):

Callers

nothing calls this directly

Calls 2

castFunction · 0.70
adaptMethod · 0.45

Tested by

no test coverage detected