Gary, el Pingüino Artefacto
Explore posts from serversDTDrizzle Team
•Created by Gary, el Pingüino Artefacto on 11/16/2024 in #help
Brand ids?
Hi, it's possible to mapped a primary key to a branded type from effect?
9 replies
DTDrizzle Team
•Created by Gary, el Pingüino Artefacto on 11/1/2024 in #help
Conditional batch on Neon Batch API?
Hi, it's possible to do something like:
3 replies
DTDrizzle Team
•Created by Gary, el Pingüino Artefacto on 10/14/2024 in #help
Applying drizzle migrations on Vercel with Hono
Hi, I'm trying to apply that migrations on the directory like this:
I'm using Nextjs, deployed on Vercel with a hono api. The path is /api/hono/tenants/create.
But every time I get this error:
Error: Can't find meta/_journal.json file
at /var/task/.next/server/app/api/hono/[[...route]]/route.js:2467:42887
at qp (/var/task/.next/server/app/api/hono/[[...route]]/route.js:2467:43323)
at /var/task/.next/server/app/api/hono/[[...route]]/route.js:2467:44022
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async o (/var/task/.next/server/chunks/636.js:67:10412)
at async Function.P [as begin] (/var/task/.next/server/chunks/636.js:67:9981)
at async qf (/var/task/.next/server/app/api/hono/[[...route]]/route.js:2467:43460)
I have tried absolute urls, relative, using path.join, etc.
Thanks for the help 😄
2 replies
DTDrizzle Team
•Created by Gary, el Pingüino Artefacto on 8/7/2024 in #help
Get table definition?
How can I get a SQL to create a table based on a table.
For example:
Definition should be something like this:
2 replies
DTDrizzle Team
•Created by Gary, el Pingüino Artefacto on 6/3/2024 in #help
Helpers for querying in the new PostGIS Geometry type
Hi, I was playing around with the new types and I wondered if there are some utility helpers for querying the point.
For example:
The SQL should be something like this:
Thanks 🙂
3 replies
DTDrizzle Team
•Created by Gary, el Pingüino Artefacto on 4/30/2024 in #help
Filtering a jsonb with the shape Array<{id:string,name:string}>
Hi. I have a query that returns all the posts with it's categories like this,
I'm trying to filter the posts based on it's categories. This is what I have
Helpers:
Current query:
4 replies
DTDrizzle Team
•Created by Gary, el Pingüino Artefacto on 3/3/2024 in #help
sql operator with array of strings
This works
This also works
This crashes
Is there any workaround to pass an array in the sql operator?
4 replies