Eai
Explore posts from serversCDCloudflare Developers
•Created by Eai on 5/22/2024 in #workers-help
Connect to postgres from Workers through tunnel. Is it still possible?
https://blog.cloudflare.com/introducing-socket-workers
https://github.com/cloudflare/worker-template-postgres
Based on this blog post and the template on github, it looks like they used a custom driver to accomplish that. However, the blog and repository were last updated three years ago, and I think things have changed a lot now.
I tried running this sample, but the dependencies were old (wrangler v1) and I didn't know how to migrate them.
Is it currently possible to achieve the same? The purpose is to securely connect to on-premises postgres from workers. hyperdrive requires a publicly accessible postgres, so it doesn't seem fit for this purpose.
3 replies
In-Source Testing with deno test?
Can I do something like vitest's In-Source Testing with
deno test
? That is, I don't want to export private functions or objects just for testing.3 replies
DIAdiscord.js - Imagine an app
•Created by Eai on 12/9/2023 in #djs-questions
quick question: How can I send a message to the created thread?
After the bot creates a thread, I would like to post a message by the bot to that thread.
I have a
ThreadChannel
object which is the return value of GuildTextThreadManager.create()
.
There's probably nothing difficult about it, but I haven't run the bot in over a year so I forgot.3 replies