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

Method type_descriptor

lib/sqlalchemy/engine/interfaces.py:1326–1338  ·  view source on GitHub ↗

Transform a generic type to a dialect-specific type. Dialect classes will usually use the :func:`_types.adapt_type` function in the types module to accomplish this. The returned result is cached *per dialect class* so can contain no dialect-instance state.

(self, typeobj: TypeEngine[_T])

Source from the content-addressed store, hash-verified

1324 raise NotImplementedError()
1325
1326 def type_descriptor(self, typeobj: TypeEngine[_T]) -> TypeEngine[_T]:
1327 """Transform a generic type to a dialect-specific type.
1328
1329 Dialect classes will usually use the
1330 :func:`_types.adapt_type` function in the types module to
1331 accomplish this.
1332
1333 The returned result is cached *per dialect class* so can
1334 contain no dialect-instance state.
1335
1336 """
1337
1338 raise NotImplementedError()
1339
1340 def initialize(self, connection: Connection) -> None:
1341 """Called during strategized creation of the dialect with a

Callers 8

_gen_dialect_implMethod · 0.45
_gen_dialect_implMethod · 0.45
type_engineMethod · 0.45
load_dialect_implMethod · 0.45
load_dialect_implMethod · 0.45
test_datesMethod · 0.45
test_datesMethod · 0.45

Calls

no outgoing calls

Tested by 5

load_dialect_implMethod · 0.36
load_dialect_implMethod · 0.36
test_datesMethod · 0.36
test_datesMethod · 0.36