Skip to content

UUID for postgreSQL #331

@chris-han

Description

@chris-han

Things to check first

  • I have searched the existing issues and didn't find my feature already requested there

Feature description

3.0.0RC5 generated model for pgsql using generic uuid type uuid.UUID, which need to be manually converted to the UUID type from sqlalchemy.dialects.postgresql:
from sqlalchemy.dialects.postgresql import UUID

from:
uuid: Mapped[uuid.UUID] = mapped_column(Uuid, primary_key=True)
to:
uuid: Mapped[UUID] = mapped_column(Uuid, primary_key=True)

Use case

You'll need this every time you generate the models from pgsql which contains uuid type.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions