class documentation
class NativeForEmulated(TypeEngineMixin): (source)
Known subclasses: sqlalchemy.dialects.mysql.ENUM
, sqlalchemy.dialects.oracle.INTERVAL
, sqlalchemy.dialects.postgresql.ENUM
, sqlalchemy.dialects.postgresql.INTERVAL
Indicates DB-native types supported by an :class:`.Emulated` type. .. versionadded:: 1.2.0b3
Class Method | adapt |
Given an impl, adapt this type's class to the impl assuming "native". |
Class Method | adapt |
Given an impl, adapt this type's class to the impl assuming "emulated". |
Inherited from TypeEngineMixin
:
Method | adapt |
Undocumented |
Method | dialect |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Property | _static |
Undocumented |
@classmethod
def adapt_emulated_to_native(cls, impl:
def adapt_emulated_to_native(cls, impl:
Union[ TypeEngine[ Any], TypeEngineMixin]
, **kw: Any
) -> TypeEngine[ Any]
:
(source)
¶
overridden in
sqlalchemy.dialects.mysql.ENUM
, sqlalchemy.dialects.postgresql.ENUM
, sqlalchemy.dialects.postgresql.INTERVAL
Given an impl, adapt this type's class to the impl assuming "native". The impl will be an :class:`.Emulated` class but not a :class:`.NativeForEmulated`. e.g.: postgresql.ENUM produces a type given an Enum instance.
@classmethod
def adapt_native_to_emulated(cls, impl:
def adapt_native_to_emulated(cls, impl:
Union[ TypeEngine[ Any], TypeEngineMixin]
, **kw: Any
) -> TypeEngine[ Any]
:
(source)
¶
Given an impl, adapt this type's class to the impl assuming "emulated".