mike
mike
Explore posts from servers
CDCloudflare Developers
Created by mike on 9/8/2024 in #workers-help
pg example not working
I followed the example from the Cloudflare documentation for connecting to Postgres using node-postgres / pq at the link: https://developers.cloudflare.com/hyperdrive/configuration/connect-to-postgres/#node-postgres–pg. However, I encountered the error “this.stream.once is not a function.” According to this compatibility matrix (https://workers-nodejs-compat-matrix.pages.dev/), nodejs_compat_v2 should support the .once method on streams. Is there a related issue or a step I might have overlooked? My code is based on the documentation, and you can view it here: https://github.com/waigel/example-pg-cloudflare. Any suggestions or help would be appreciated!
2 replies
DTDrizzle Team
Created by mike on 8/29/2024 in #help
Define custom migration SQL for drizzle
Is it possible to create custom Drizzle migration commands or SQL statements for unimplemented functions, like custom domains? We want to fully rely on Drizzle for DB schema migrations but need support for functions not yet implemented. What’s the recommended approach to safely include custom statements in the migration process?
3 replies