Add support of native type mappings from Prisma schema#7
Conversation
|
@Sukairo-02 Could you please review?🙂 |
|
@Sukairo-02 Could you please take a look? |
|
Glad to see this and other repos getting some use out of the example I posted in the original Prisma issue :D Keep in mind that this approach will traverse the AST tree from scratch on every call (within its boundaries), so exponential complexity. If you want to optimize it, you can traverse it once and make a lookup map ;) |
|
Yeah, sorry for not responding for a long time, I'll look into it the moment I get the chance to, really busy right now. |
… types attributes also update some other dependencies to not breaking versions
|
Hey, hey, I have contributed to Prisma to expose native type attributes, now with Prisma v6.0.0 it is avaliable (though it is not mentioned in patch notes) so I updated the Prisma version in the package and updated the code. No hurry on merging the PR, I understand, that currently Drizzle Team is actively working on v1.0.0 release 😉 Maybe I'll add support for more native types in coming days if I have time. |
…Timestamptz, Json, JsonB native mappings for PostgreSQL
|
@Sukairo-02 just a friendly reminder 😊I've added support for all native type mappings. The actual changes are quite small, I just updated the dependencies |
|
(Note from the peanut gallery: we are struggling with @db.Date not coming through correctly, which is currently blocking our migration to Drizzle since all such values come through as |
As I understand all Drizzle development resources are on the v1.0.0 release. So, till it is released I guess my PR will not be merged. As a workaround you can use |
No description provided.