Bholmesdev
Explore posts from serversDTDrizzle Team
•Created by Bholmesdev on 7/26/2023 in #help
sqlite http-proxy can't handle undefined values on `.get()` ?
Also traced the code if it helps! Looks like empty arrays are still mapped against the column names, even when that array is empty. Would explain why the values are present but undefined https://github.com/drizzle-team/drizzle-orm/blob/main/drizzle-orm/src/sqlite-proxy/session.ts#L129-L134
24 replies
DTDrizzle Team
•Created by Bholmesdev on 7/26/2023 in #help
sqlite http-proxy can't handle undefined values on `.get()` ?
Sounds good. I can just check if
entry?.id
is undefined
as a workaround for now24 replies
DTDrizzle Team
•Created by Bholmesdev on 7/26/2023 in #help
sqlite http-proxy can't handle undefined values on `.get()` ?
So about the
undefined
issue in my http-proxy, is this a case of me holding it wrong? Or are there planned changes here?24 replies
DTDrizzle Team
•Created by Bholmesdev on 7/26/2023 in #help
sqlite http-proxy can't handle undefined values on `.get()` ?
All very helpful, thanks!
24 replies
DTDrizzle Team
•Created by Bholmesdev on 7/26/2023 in #help
sqlite http-proxy can't handle undefined values on `.get()` ?
So you mean
.default(() => nanoid())
could be possible in the future?24 replies
DTDrizzle Team
•Created by Bholmesdev on 7/26/2023 in #help
sqlite http-proxy can't handle undefined values on `.get()` ?
Ah that would be fantastic. The custom type was definitely a workaround after trying a lambda in
default
first!24 replies
DTDrizzle Team
•Created by Bholmesdev on 7/26/2023 in #help
sqlite http-proxy can't handle undefined values on `.get()` ?
24 replies
DTDrizzle Team
•Created by Bholmesdev on 7/26/2023 in #help
sqlite http-proxy can't handle undefined values on `.get()` ?
Ah, just commenting that the type signature gaurantees a return value when it could be
undefined
24 replies