Jackson Kasi
Explore posts from serversDTDrizzle Team
•Created by Jackson Kasi on 10/22/2024 in #help
Issue: Error during `db:push` - TypeError in Drizzle Kit with PostgreSQL
3 replies
DTDrizzle Team
•Created by Jackson Kasi on 8/17/2024 in #help
Issue with drizzle-graphql Entities Not Working Well with GraphQL
3 replies
DTDrizzle Team
•Created by Jackson Kasi on 8/17/2024 in #help
Help Needed: Error with Arguments in GraphQL Resolver Using Drizzle ORM, Serverless, and TypeScript
Hi Drizzle Community,
I'm running into an issue with GraphQL and Drizzle ORM while working on a serverless project using TypeScript. I've set up my environment with the following key components:
- Environment: Serverless Framework
- Language: TypeScript
- ORM: Drizzle ORM
- GraphQL: Apollo Server with
@apollo/server
- Database: PostgreSQL (using drizzle-orm/postgres-js
)
Problem Description
I'm encountering the following error when trying to run my serverless application:
Context
Here’s a simplified version of my code setup:
user.schema.ts
:
5 replies
DTDrizzle Team
•Created by Jackson Kasi on 8/16/2024 in #help
Help Needed: `UnhandledSchemeError: cloudflare:sockets` with Drizzle ORM and `runtime = "edge"`
Hi Drizzle community,
I'm running into a problem while trying to deploy my Next.js API routes using Drizzle ORM with PostgreSQL. Everything works fine locally, but when I set
export const runtime = "edge";
, I encounter the following error during compilation:
My Setup:
- Framework: Next.js
- Database: PostgreSQL
- ORM: Drizzle ORM with postgres
package
- Runtime: edge
(Cloudflare Workers)
- Key Code Snippet:
Issue Summary:
The error seems to stem from the postgres
package when trying to use the edge runtime with Cloudflare Workers. It appears that Webpack cannot handle the cloudflare:
scheme used in postgres/cf/polyfills.js
.
Questions:
1. Has anyone else encountered this problem when using Drizzle ORM with Cloudflare Workers and the runtime = "edge"
setting?
2. Is there a recommended approach for using Drizzle ORM with PostgreSQL in Cloudflare Workers?
Any advice or suggestions would be greatly appreciated!
Thanks in advance for your help!1 replies
DTDrizzle Team
•Created by Jackson Kasi on 6/30/2024 in #help
Issue with Drizzle ORM and drizzle-kit push with Tembo Cloud PostgreSQL
3 replies
DTDrizzle Team
•Created by Jackson Kasi on 5/11/2024 in #help
Handling Aggregated Counts with GroupBy in Drizzle ORM: Requesting Community Insights
2 replies
DTDrizzle Team
•Created by Jackson Kasi on 4/20/2024 in #help
Need Help: `ilike` Function Not Returning Expected Results in Drizzle ORM
Hello Drizzle ORM Community!
I'm currently working with Drizzle ORM in a TypeScript environment using PostgreSQL (specifically, Neon PostgreSQL) and I've encountered a small issue with querying user data using the
ilike
function for case-insensitive matching. I'm attempting to query tbl_users
based on partial user names, but I'm not getting the expected results.
Here's the snippet of my code where I implement the query:
I pass the query parameter as jack expecting to retrieve users with names like Jackson Kasi, but instead, I receive an empty array. According to the Drizzle ORM documentation, the ilike
should work for PostgreSQL like so:
However, my current implementation doesn't seem to function as expected. Does anyone have experience with this function or can spot what I might be doing wrong? Any suggestions on how to properly use ilike
with findMany
or corrections to my approach would be greatly appreciated!
Thank you in advance for your help!3 replies
DTDrizzle Team
•Created by Jackson Kasi on 4/18/2024 in #help
Help with SQL_PARSE_ERROR When Using Raw SQL Queries in Drizzle ORM with Sqlite ( truso db )
1 replies
DTDrizzle Team
•Created by Jackson Kasi on 4/10/2024 in #help
Issue Querying Table via Drizzle ORM with SQLite
15 replies