Rorsch
DTDrizzle Team
•Created by Rorsch on 7/31/2024 in #help
findMany with custom field
Thank you as always @Raphaël M (@rphlmr) ⚡ , I decided to use raw sql to handle this feature instead
5 replies
DTDrizzle Team
•Created by Rorsch on 7/31/2024 in #help
findMany with custom field
What i want is for it to look something like this
5 replies
DTDrizzle Team
•Created by Rorsch on 7/23/2024 in #help
Fetch data based on client's timezone.
interesting approach. yes, i think i can do that for now. thank you for giving me some insights!
3 replies
DTDrizzle Team
•Created by Rorsch on 7/15/2024 in #help
How to Normalize Database using Drizzle?
thank you for your insights! at least i think I'm on the right track 😄
13 replies
DTDrizzle Team
•Created by Rorsch on 7/15/2024 in #help
How to Normalize Database using Drizzle?
@Raphaël M (@rphlmr) ⚡ thank you! it's working now, but I need to use dotenv on my DB config to read the env file.
I have another question just for my improvements. Am I doing the database normalization the right way as it should be? Are people in the industry doing it this way as well? Or there should be a better way to tackle this kind of problem?
I'm currently saving the migration script as
/db/migration/YYYYMMDD_migrate_orders_to_new_schema.ts
and I will be commiting the script to git.13 replies
DTDrizzle Team
•Created by Rorsch on 7/15/2024 in #help
How to Normalize Database using Drizzle?
This is the error that I got. I tried to use
require
instead but it's not working as well.
13 replies
DTDrizzle Team
•Created by Rorsch on 7/15/2024 in #help
How to Normalize Database using Drizzle?
and this is what I wrote for the migration
13 replies
DTDrizzle Team
•Created by Rorsch on 7/15/2024 in #help
How to Normalize Database using Drizzle?
Here is my table
13 replies
DTDrizzle Team
•Created by Rorsch on 4/16/2024 in #help
Selecting from 2 subqueries without using magic `sql()`
both
currentMonthRevenue
and lastMonthRevenue
is identical. this is the return
4 replies
DTDrizzle Team
•Created by Rorsch on 12/17/2023 in #help
net::ERR_NAME_NOT_RESOLVED showing multiple times on the console
right right, thanks a lot! I'm new to next js and these kind of stuffs, and I've been stuck for 2 days hahaha
32 replies
DTDrizzle Team
•Created by Rorsch on 12/17/2023 in #help
net::ERR_NAME_NOT_RESOLVED showing multiple times on the console
that way, the Modal and Button can be a client component, and the page still can be a server component
32 replies
DTDrizzle Team
•Created by Rorsch on 12/17/2023 in #help
net::ERR_NAME_NOT_RESOLVED showing multiple times on the console
Ah, then I probably will just move the Button inside the Modal component, instead of having it as 2 separate components
32 replies
DTDrizzle Team
•Created by Rorsch on 12/17/2023 in #help
net::ERR_NAME_NOT_RESOLVED showing multiple times on the console
1 question, in my case, the dialog won't be opened until the
Add New Customer
button is clicked. In your case, Button to show the Dialog is inside the Dialog component itself.32 replies
DTDrizzle Team
•Created by Rorsch on 12/17/2023 in #help
net::ERR_NAME_NOT_RESOLVED showing multiple times on the console
like /dashboard/customers?open-modal=true
32 replies
DTDrizzle Team
•Created by Rorsch on 12/17/2023 in #help
net::ERR_NAME_NOT_RESOLVED showing multiple times on the console
unless there is a way to control modal view without using useState and onClick, like using query string, there's no other way to handle this problem
32 replies
DTDrizzle Team
•Created by Rorsch on 12/17/2023 in #help
net::ERR_NAME_NOT_RESOLVED showing multiple times on the console
did i get it right?
32 replies
DTDrizzle Team
•Created by Rorsch on 12/17/2023 in #help
net::ERR_NAME_NOT_RESOLVED showing multiple times on the console
so, since i need to have a usestate on the page to handle the modal, probably the approach that i can do is:
- make the whole page as a client component
- make the table a client component
- create function to fetch the data from drizzle db, set this as a server function
- pass the customers data to table as a prop
32 replies
DTDrizzle Team
•Created by Rorsch on 12/17/2023 in #help
net::ERR_NAME_NOT_RESOLVED showing multiple times on the console
32 replies
DTDrizzle Team
•Created by Rorsch on 12/17/2023 in #help
net::ERR_NAME_NOT_RESOLVED showing multiple times on the console
because if i force the whole page to be a client component, the table won't work, as it is a server component
32 replies
DTDrizzle Team
•Created by Rorsch on 12/17/2023 in #help
net::ERR_NAME_NOT_RESOLVED showing multiple times on the console
32 replies