itsyoboieltr
itsyoboieltr
Explore posts from servers
DTDrizzle Team
Created by itsyoboieltr on 10/19/2023 in #help
Drizzle typebox enum array not working
RIP drizzle-typebox
10 replies
DTDrizzle Team
Created by itsyoboieltr on 10/19/2023 in #help
Drizzle typebox enum array not working
any news on this? 😛
10 replies
DTDrizzle Team
Created by itsyoboieltr on 11/30/2023 in #help
eslint-plugin-drizzle add "db" as default
the current solution, is just putting it as part of the template I am developing, so everytime I start a new project, the rules are already there https://github.com/itsyoboieltr/dbest-stack/blob/b44dbad9595cc2aeff27f807f441497eb78a3302/package.json#L70C2-L70C2
28 replies
DTDrizzle Team
Created by itsyoboieltr on 11/30/2023 in #help
eslint-plugin-drizzle add "db" as default
thanks!
28 replies
DTDrizzle Team
Created by itsyoboieltr on 11/30/2023 in #help
eslint-plugin-drizzle add "db" as default
looking forward to how it plays out in the future then 😄
28 replies
DTDrizzle Team
Created by itsyoboieltr on 11/30/2023 in #help
eslint-plugin-drizzle add "db" as default
but overall, great initiative!
28 replies
DTDrizzle Team
Created by itsyoboieltr on 11/30/2023 in #help
eslint-plugin-drizzle add "db" as default
and let's not even talk about changing the variable in the code, but forgetting about changing it in the eslintrc 😄 it is rare, but could also happen
28 replies
DTDrizzle Team
Created by itsyoboieltr on 11/30/2023 in #help
eslint-plugin-drizzle add "db" as default
I think the biggest problem with the lint plugin is that your project is destined to break just by adding it. The only way to not have your app break, is by configuring the "drizzleObjectName" variable. But it is not plug-n-play without it. Normally, lint plugins work without any specific configuration.
28 replies
DTDrizzle Team
Created by itsyoboieltr on 11/30/2023 in #help
eslint-plugin-drizzle add "db" as default
I wish you could check somehow if the .delete method is called somehow on a drizzle db object or something similar, instead of manually specifying the variable name
28 replies
DTDrizzle Team
Created by itsyoboieltr on 11/30/2023 in #help
eslint-plugin-drizzle add "db" as default
the current default also seems to have unintended consequences unfortunately
28 replies
DTDrizzle Team
Created by itsyoboieltr on 11/30/2023 in #help
eslint-plugin-drizzle add "db" as default
but this needs to be declared for every rule separately, right?
28 replies
DTDrizzle Team
Created by itsyoboieltr on 11/30/2023 in #help
eslint-plugin-drizzle add "db" as default
My feedback is that I added it into my app, and it immediately broke my api routes that are named "delete", which should be pretty common in CRUD apps
28 replies
DTDrizzle Team
Created by itsyoboieltr on 11/30/2023 in #help
eslint-plugin-drizzle add "db" as default
cc: @Angelelz
28 replies
DTDrizzle Team
Created by itsyoboieltr on 11/19/2023 in #help
optional join
8 replies
DTDrizzle Team
Created by itsyoboieltr on 11/19/2023 in #help
optional join
makes sense, I'll add it just to keep it in mind
8 replies
DTDrizzle Team
Created by itsyoboieltr on 11/19/2023 in #help
optional join
I wonder if it would even be possible? nevertheless, it would be a nice QOL feature
8 replies
DTDrizzle Team
Created by itsyoboieltr on 11/13/2023 in #help
Full-text search on jsonb column
This is for future dwellers: I ended up doing the simplest thing ever (which was enough for my use-case of just searching for any substring in a nested json tree)
where(
sql`${table.column}::text ILIKE ${`%${search}%`}`
)
where(
sql`${table.column}::text ILIKE ${`%${search}%`}`
)
10 replies
DTDrizzle Team
Created by Izaan on 11/14/2023 in #help
One to Many Self Relations...
does anyone have an example for a many to many self relation? 😄 I am also looking to implement something similar using the postgres driver: imagine, following users. An User can be followed by many users, and can have many followers themselves.
22 replies
DTDrizzle Team
Created by itsyoboieltr on 11/13/2023 in #help
Full-text search on jsonb column
thanks, will see if I can get this to work
10 replies
DTDrizzle Team
Created by itsyoboieltr on 11/13/2023 in #help
Full-text search on jsonb column
Postgresql @Angelelz
10 replies