JavaDad
JavaDad
Explore posts from servers
DTDrizzle Team
Created by JavaDad on 12/22/2023 in #help
How to select part of a string in Drizzle?
Update: Seems like this is the solution.
const timers = await db
.select()
.from(timerSchema)
.where(sql`timer_date like ${`%${queryDayString}%`}`);
const timers = await db
.select()
.from(timerSchema)
.where(sql`timer_date like ${`%${queryDayString}%`}`);
4 replies