class UUID(sqltypes.TypeEngine):
Known subclasses: sqlalchemy.dialects.postgresql.pg8000._PGUUID
, sqlalchemy.dialects.postgresql.psycopg2._PGUUID
, sqlalchemy.dialects.postgresql.pygresql._PGUUID
PostgreSQL UUID type.
Represents the UUID column type, interpreting data either as natively returned by the DBAPI or as Python uuid objects.
The UUID type is currently known to work within the prominent DBAPI drivers supported by SQLAlchemy including psycopg2, pg8000 and asyncpg. Support for other DBAPI drivers may be incomplete or non-present.
Method | __init__ |
Construct a UUID type. |
Method | bind_processor |
Undocumented |
Method | coerce_compared_value |
See .TypeEngine.coerce_compared_value for a description. |
Method | literal_processor |
Undocumented |
Method | result_processor |
Undocumented |
Class Variable | __visit_name__ |
Undocumented |
Instance Variable | as_uuid |
Undocumented |
Parameters | |
as_uuid | Undocumented |
as_uuid=False | if True, values will be interpreted as Python uuid objects, converting to/from string via the DBAPI. |
.TypeEngine.coerce_compared_value
for a description.