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
KKinde
•Created by Jackson Kasi on 7/16/2024 in #💻┃support
Are there guidelines for integrating Kind Auth with a React.js-based Figma plugin?
3 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
Seeking Guidance: Transitioning from Hono.js with Cloudflare Workers to AWS Lambda
Hello, guys! Does anyone have a project that combines Hono.js with AWS Lambda? Please share it here. It would be helpful for me to work with this tech stack.
I have worked with Hono.js and Cloudflare Workers, and it's really fast. However, some npm packages do not support edge computing. Therefore, I am planning to switch my upcoming project to AWS. ( hono js + aws lambda )
However, due to the lack of documentation, I am unable to work with Hono.js on AWS Lambda, and there is no option to run the server locally.
So, if anyone could share the repository or any article or provide guidance, I would appreciate it.
3 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
Access Railway server via http, not https?
Hello guys, any one can let me know to access my railway server using http link?
ex: http://myserver.up.railway.app
8 replies