Gavin
DTDrizzle Team
•Created by bluesky on 10/10/2023 in #help
Is ilike vulnerable to SQL injections?
I think you should be using the sql`` operator:
https://orm.drizzle.team/docs/sql
4 replies
DTDrizzle Team
•Created by DYELbrah on 9/7/2023 in #help
Timestamp from Postgres returns date object despite schema using string mode?
@DYELbrah I would be, I just turned it to date mode and deal with converting back and forth 🤷♂️
15 replies
DTDrizzle Team
•Created by Gavin on 9/19/2023 in #help
Serializable isolation level - for update selects
Oh, nice :). Thank you!
3 replies
DTDrizzle Team
•Created by DYELbrah on 9/7/2023 in #help
Timestamp from Postgres returns date object despite schema using string mode?
I am having the same issue with postgres:
createdAt: timestamp('created_at', { mode: 'string', withTimezone: true, precision: 6 })
.defaultNow()
.notNull(),
updatedAt: timestamp('updated_at', { mode: 'string', withTimezone: true, precision: 6 })
.defaultNow()
.notNull(),
Type inference of return types says string, but it's actually a JS Date object, and some code elsewhere blows up.
15 replies