RobinBlomberg / kysely-codegen

Generate Kysely type definitions from your database.
MIT License
690 stars 62 forks source link

Add String Option for PostgreSQL Interval Type in Upserts and Inserts #159

Open qchar opened 1 month ago

qchar commented 1 month ago

This PR enhances the handling of PostgreSQL interval types in upsert and insert operations. Previously, the interval type was strictly managed as a number or IPostgresInterval. To improve flexibility and usability, this update allows the interval type to also be represented as a string. Using a number here seems incorrect, as I couldn't find such an option in the PostgreSQL documentation, but I have kept this possibility to maintain backward compatibility.