samson
Explore posts from serversDTDrizzle Team
•Created by samson on 6/2/2024 in #help
drizzle-zod not working with column of type vector (as introduced in latest release v.0.31.0)
Tried using
createSelectSchema()
on a table that has a column of type vector
, e.g.
Getting a strange error:
Error: Cannot use 'in' operator to search for 'enumValues' in undefined
The error message is kind of weird (why is it talking about enumValues?), but without the vector column, everything works out... Any pointers to how I could fix this and keep using drizzle-zod's helper functions? I use them extensively in my project so it would be a bummer if I had to ditch them2 replies
DTDrizzle Team
•Created by samson on 5/6/2024 in #help
Having placeholders "survive" dynamic query building
If the query I'm trying to modify with a dynamic query (
....$dynamic()
) contains any placeholders, I'm getting an error that says No value for placeholder.... provided
.
That seems counterintuitive because I should only be required to provide placeholder values when I actually execute the query, not when I'm still "building" it.
Is this a limitation of Drizzle, or am I thinking the wrong way about this? EDIT: Funny enough, the query seems to still work despite the error..
Simple example to illustrate:
1 replies
DTDrizzle Team
•Created by samson on 2/21/2024 in #help
Is there really no way to construct a valid orderBy statement dynamically without $.dynamicQuery?
I realize I can append multiple
orderBy
statements with .$dynamic()
But I'm wondering why a more direct approach doesn't work?
Error message is2 replies
PD🧩 Plasmo Developers
•Created by samson on 12/22/2023 in #🔰newbie
Receiving end does not exist.
Hey there, new Plasmo user here. I'm trying to pull some information from the DOM (of the currently active tab) and display it in my extension. Should be simple...
I'm getting
Error: Could not establish connection. Receiving end does not exist.
when calling sendToContentScript
.
I couldn't find any documentation for this function, so hoping you can point me to the right direction. I refreshed all tabs/ reloaded the extension, so I think the error is due to me not understanding how messaging in Plasmo works..
popup.tsx
contents/getFields.ts
18 replies