skip to Main Content

Update if property already exists on bulk import with SQLAlchemy and PostgreSQL

I have a table with primary uuid key, unique article and some other params. My model: class Product(Base): __tablename__ = "products" idf: Mapped[str] = mapped_column(primary_key=True, unique=True) name: Mapped[str] = mapped_column(nullable=False) article: Mapped[str] = mapped_column(nullable=False, unique=True) category: Mapped[str] = mapped_column(default="") description:…

VIEW QUESTION
Back To Top
Search