uptrace / bun

SQL-first Golang ORM
https://bun.uptrace.dev
BSD 2-Clause "Simplified" License
3.8k stars 231 forks source link

PostgreSQL range types support #325

Open imraan-go opened 2 years ago

imraan-go commented 2 years ago

How to make model for range types of postgresql?

https://www.postgresql.org/docs/14/rangetypes.html

vmihailenco commented 2 years ago

You can try https://pkg.go.dev/github.com/jackc/pgtype#Daterange or write something yourself using https://bun.uptrace.dev/guide/custom-types.html#driver-valuer

github-actions[bot] commented 1 week ago

This issue has been automatically marked as stale because it has not had activity in the last 30 days. If there is no update within the next 7 days, this issue will be closed.

vmihailenco commented 1 week ago

There is now Range type in pgdialect.