drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
21.57k stars 490 forks source link

Allow wrapping the column in custom SQL for custom types #554

Open dankochetov opened 1 year ago

dankochetov commented 1 year ago

For example, to always select fn(column) instead of column

ItsWendell commented 8 months ago

Related issue with 7+ likes.

https://github.com/drizzle-team/drizzle-orm/issues/1083

This should also support doing the same for inserts and updates, so you can insert e.g. postgis data in different formats (text, hex, geojson, wdx, etc) using the ST_ PostGIS functions.

algora-pbc commented 7 months ago

💎 $30 bounty created by @john-griffin 👉 To claim this bounty, submit your pull request on Algora 📝 Before proceeding, please make sure you can receive payouts in your country 💵 Payment arrives in your account 2-5 days after the bounty is rewarded 💯 You keep 100% of the bounty award 🙏 Thank you for contributing to drizzle-team/drizzle-orm!

Angelelz commented 7 months ago

/attempt #1423