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

Amazon web services – aws rds version

Is it possible to get aws rds version? I know for Aws rds Aurora version select aurora_version(); aurora_version ---------------- 16.3.0 (1 row) select version(); version ------------------------------------------------------------------------------------------------------------- PostgreSQL 16.3 on aarch64-unknown-linux-gnu, compiled by aarch64-unknown-linux-gnu-gcc (GCC) 9.5.0, 64-bit (1 row) SHOW server_version…

VIEW QUESTION

Postgresql – DB lock with any isolation is not working as expected in Spring boot JPA application

I have a simple database table (PostgreSql) with the following data In the spring boot JPA application, the corresponding Entity class for this table is defined as follows import java.time.LocalDateTime; import org.hibernate.annotations.UpdateTimestamp; import jakarta.persistence.Entity; import jakarta.persistence.Id; import jakarta.persistence.Table; import lombok.AllArgsConstructor;…

VIEW QUESTION
Back To Top
Search