示例#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))
示例#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))
示例#3
0
 def load_dialect_impl(self, dialect):
     if dialect.name == 'postgresql':
         return dialect.type_descriptor(PostgresUUID())
     else:
         return dialect.type_descriptor(CHAR(32))
示例#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)