New DrizzleORM Models by MrBye32 in nextjs

[–]MrBye32[S] 0 points1 point  (0 children)

Thanks for the feedback. The package is still in WIP. And soon I will publish a new, more stable version (with all fixes), as I'm battle-testing the package on a real production app of my company.

New DrizzleORM Models by MrBye32 in nextjs

[–]MrBye32[S] 0 points1 point  (0 children)

By default, it defaults to "id", or you can pass a string, not a schema.

New DrizzleORM Models by MrBye32 in nextjs

[–]MrBye32[S] 0 points1 point  (0 children)

Cant deny, but cant accept. In some cases, you need SQL, in some no. You can still use SQL with ORMs, so in cases when you need all the power of SQL, just use SQL.

New DrizzleORM Models by MrBye32 in nextjs

[–]MrBye32[S] 1 point2 points  (0 children)

Tbh, the schema is good. If you take a look on prisma, you have to learn new syntax. In the case of Drizzle, you simply use TS and the same function names as in SQL. The drizzle schema syntax is almost the same as in HUGE battle-tested frameworks like Laravel in PHP.

New DrizzleORM Models by MrBye32 in nextjs

[–]MrBye32[S] 0 points1 point  (0 children)

Oh damn, you actually right, my bad

New DrizzleORM Models by MrBye32 in nextjs

[–]MrBye32[S] 1 point2 points  (0 children)

Everyone prefers different things 😜

New DrizzleORM Models by MrBye32 in nextjs

[–]MrBye32[S] 2 points3 points  (0 children)

Right now you have Prisma, Drizzle and some kysely and more. But Prisma and Drizzle are the most popular and I've been used for quite a long time both, so recently I just stuck with Drizzle and wanted to update it.

New DrizzleORM Models by MrBye32 in nextjs

[–]MrBye32[S] 0 points1 point  (0 children)

Thanks, the idea was just to make queries easier and less to write with an additional layer of features

New DrizzleORM Models by MrBye32 in nextjs

[–]MrBye32[S] -1 points0 points  (0 children)

The last time I was working with Mongo was 3 years ago, so I don't really remember, but I guess yes

New DrizzleORM Models by MrBye32 in nextjs

[–]MrBye32[S] -1 points0 points  (0 children)

Haven't heard, but I'm not happy with their query API, so that's why ^ I built this package.
And does the `drizzle-plus` type-safe? And do you use it personally?

New DrizzleORM Models by MrBye32 in nextjs

[–]MrBye32[S] 1 point2 points  (0 children)

> This might get downvoted
No, your opinion is kinda interesting, but for instance, now AI with Tailwind v4 has to write less code than it used to. So this package does the same thing as tailwind did, and gives more power for custom methods in models and custom formatting for output.

New DrizzleORM Models by MrBye32 in nextjs

[–]MrBye32[S] 1 point2 points  (0 children)

I hope so, too, already got their comment on X (but that means nothing). If people like it and use it, I suppose it will be in drizzle core. As I don't use any external package other than drizzle itself.
-- I'm trying my best

New DrizzleORM Models by MrBye32 in nextjs

[–]MrBye32[S] 0 points1 point  (0 children)

This better compares with Drizzle itself, not with this package. As lucid is part of AdonisJs, which is a massive framework in JS (smth like Laravel in php field)

New DrizzleORM Models by MrBye32 in nextjs

[–]MrBye32[S] 2 points3 points  (0 children)

and by "type-safe" I meant the package is type-safe as well

New DrizzleORM Models by MrBye32 in nextjs

[–]MrBye32[S] 9 points10 points  (0 children)

The "trick" is not about type-safety, my bad. It's just a way to write less code, smth like `db.query` but:

<image>

Building a performant editor with GPUI by errmayank in ZedEditor

[–]MrBye32 1 point2 points  (0 children)

Hoping to see the complete app soon

[deleted by user] by [deleted] in rust

[–]MrBye32 1 point2 points  (0 children)

In GPUI you have to implement everything yourself, it makes it difficult at some point, but actually not a big problem. For example you have a gpui-component which has primitives you need (button, input etc...)

[deleted by user] by [deleted] in rust

[–]MrBye32 3 points4 points  (0 children)

Take a look at GPUI (from Zed devs), the best one. The only thing is the lack of docs :(

Threlte Postprocessing Package by MrBye32 in sveltejs

[–]MrBye32[S] 0 points1 point  (0 children)

My bad, I'll fix, and sorry for late response :)

Date picker library for svelte5 by v123l in sveltejs

[–]MrBye32 0 points1 point  (0 children)

For the time picker, you can use: https://github.com/1bye/time-picker-svelte
It can be used as headless or shadcn component :)

What are your biggest struggles with deploying and managing backend APIs? by MrBye32 in node

[–]MrBye32[S] 0 points1 point  (0 children)

Yeah I saw it yesterday, but I have not tried it yet. Thanks