Exemplo n.º 1
0
 def load_dialect_impl(self, dialect):
     if dialect.name == "postgresql":
         return dialect.type_descriptor(PostgresUUID(as_uuid=self.as_uuid))
     else:
         return dialect.type_descriptor(CHAR(32))
Exemplo n.º 2
0
 def load_dialect_impl(self, dialect: Dialect) -> Any:
     if dialect.name == "postgresql":
         return dialect.type_descriptor(PostgresUUID())
     else:
         return dialect.type_descriptor(CHAR(32))
Exemplo n.º 3
0
 def load_dialect_impl(self, dialect):
     if dialect.name == 'postgresql':
         return dialect.type_descriptor(PostgresUUID())
     else:
         return dialect.type_descriptor(CHAR(32))
Exemplo n.º 4
0
 def load_dialect_impl(self, dialect):
     if dialect.name.startswith('postgres'):
         self.impl = PostgresUUID(as_uuid=True)
     return dialect.type_descriptor(self.impl)