Replies: 1 comment 6 replies
-
hey, @romeerez
So far I don't see how we can benefit by switching to an external column builder libraries, we have zero problems with ours so far and it would be a massive workload for us which will definitely lead to a massive variety of problems to solve, yet again - thanks for your interest and feedback! Maybe some day we'll find a way to collaborate on something, we're always open to that! |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys, maybe you remember me - I got in touch with you at the beginning of the summer, and thought that maybe I could participate somehow in ORM development, but jumped off because had a different vision and wanted to create my own ORM.
And I've made it, and here is a my columns module.
I know, you will say that you want to develop your own to better match your specific needs, but just think about it for a bit: what if we move the columns module into a separate library and develop it together, and use it by two different ORMs?
Here are features I have and it looks like drizzle ORM columns don't have:
.notNull()
so it looks like nullable by default, but TS type doesn't includenull
, so it seems to be a bug.t.number().min(1).max(10)
. Here are the docs for itjson
column accepts a schema that is compatible withZod
, here are docspull
in Prisma, so people who already have a database with probably a different ORM could just run a command and generate both models and migrations to switch to your ORM, instead of manually writing 100500 models. This feature also relies on the ability to generate code from column schema..parse
and.encode
. This allows customized data parsing, so it can be configured to return a timestamp as a string, as an epoch number, or as a Date object, as the user wishes it to be.text
field. We, developers, never think about it until someone submits a text of a gazillion size or empty. So my text field will remind setting the bounds.Currently, my columns are targetted for Postgres only, but if in case if you agree to integrate my columns and cooperate on their development, I'll do my best to cover MySQL and SQLite too.
I'd be happy if part of my work will be used on your real projects, and your work would benefit from it
Docs could be hosted on a separate site
Beta Was this translation helpful? Give feedback.
All reactions