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
TTCTheo's Typesafe Cult
•Created by Gary, el Pingüino Artefacto on 10/14/2024 in #questions
Applying drizzle migrations 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 😄
3 replies
TTCTheo's Typesafe Cult
•Created by Gary, el Pingüino Artefacto on 8/9/2024 in #questions
Extending React Markdown with any component
Hi, I'm trying to implement charts into the markdown langauge. Currently, I'm using Mermaid for some basic charts but I want to implement my own.
For example:
This markdown code will render a pie chart using mermaid.
How can I implement something to render my own react components?
I know mermaid is open source and I could look into the code, but I want to first ask is someone knows an easier way.
Also, I will be could to implement any react component because some cool functionally will be unlock.
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
TTCTheo's Typesafe Cult
•Created by Gary, el Pingüino Artefacto on 7/31/2024 in #questions
Loading server components on the client
Have anyone tried loading server components in the client.
Maybe something like this:
Or even with children:
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
TTCTheo's Typesafe Cult
•Created by Gary, el Pingüino Artefacto on 2/20/2024 in #questions
React Grid Layout automatic detection
Hi. I'm working with React Grid Layout in a responsive way where I need to compute the correct layout based on some "type" of widget. Here is an example.
Input:
Output:
5 replies
TTCTheo's Typesafe Cult
•Created by Gary, el Pingüino Artefacto on 1/13/2024 in #questions
Vercel stream keep alive???
I just found this git repo for publishing messages with NextJS and Upstash and I got some questions.
https://github.com/rishi-raj-jain/upstash-nextjs-publish-messages-with-sse-example/blob/master/app/api/stream/route.js
Isn't this going to timeout or use a shit amount of function execution?
What happend when deploy to the edge?
Does this even work without the bill going to the moon?
2 replies
Error at deployment
Im getting this error on the deployment. Im using NextJS.
I have no idea what is error is, hope there is nothing sensitive.
node[1]: ../src/node_platform.cc:61:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
1: 0xa67a18 node::Abort() [node]
2: 0xa67aa7 [node]
3: 0xae9a62 node::WorkerThreadsTaskRunner::WorkerThreadsTaskRunner(int) [node]
4: 0xae9b92 node::NodePlatform::NodePlatform(int, v8::TracingController*) [node]
5: 0xa277ff node::V8Platform::Initialize(int) [node]
6: 0xa25a21 node::InitializeOncePerProcess(int, char, node::InitializationSettingsFlags, node::ProcessFlags::Flags) [node]
7: 0xa25ca9 node::InitializeOncePerProcess(int, char) [node]
8: 0xa25d08 node::Start(int, char**) [node]
9: 0x7f529ea8e24e [/nix/store/7fz6dhhriwv6n4kdg05qi8cwf7mfqza9-glibc-2.35-163/lib/libc.so.6]
10: 0x7f529ea8e309 __libc_start_main [/nix/store/7fz6dhhriwv6n4kdg05qi8cwf7mfqza9-glibc-2.35-163/lib/libc.so.6]
11: 0x98be75 _start [node]
21 replies