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
#### What I've Tried:
1. Schema Inspection for
Sample results: I suspect this (or a similar
CHECK
Constraints:
- I ran a query to check for any CHECK
constraints in my PostgreSQL schema, as I suspected the error might be related to them. Here's what I found:
Sample results: I suspect this (or a similar
CHECK
) constraint might be causing the issue.
2. Tried Downgrading/Upgrading drizzle-kit
:
I tried downgrading and upgrading drizzle-kit
but the issue persists with the same error.
3. Checked Permissions:
I also ensured that my PostgreSQL user has sufficient permissions to modify the schema and drop constraints.
#### Next Steps:
- Is there a known issue with drizzle-kit
handling complex CHECK
constraints like the one in pgsodium.key
?
- Should I manually drop these constraints before running db:push
, or is there a workaround to handle this within Drizzle ORM?
- Any insights or potential fixes from the community would be greatly appreciated!
Thanks in advance for your help!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
Issue with drizzle-graphql Entities Not Working Well with GraphQL
Please check this to reproduce the issue: https://github.com/jacksonkasi1/drizzle-graphql-lambda
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
Please check this to reproduce the issue: https://github.com/jacksonkasi1/drizzle-graphql-lambda
5 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
Hey guys, has anyone tried drizzle-graphql with custom queries?
I need help or suggestions.
5 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
Guys if need i will share code repo, i need help plz 🙏
5 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
schema.ts
:
What I’ve Tried
- Logging args
: I added console.log(args)
inside the resolver, but it doesn’t seem to be logging anything before the error occurs.
- Hardcoding authUserId
: Even when I hardcode authUserId
, I still receive the same error about arguments.
tsconfig.json
Here is my tsconfig.json
for context:
Request
Has anyone encountered this issue before or knows what might be causing it? Any help would be greatly appreciated!
Thank you!5 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 6/30/2024 in #help
Issue with Drizzle ORM and drizzle-kit push with Tembo Cloud PostgreSQL
Details:
- Database: PostgreSQL on Tembo Cloud (OLTP stack)
- Extension Installed:
pg_stat_statements
Schema Definition:
Drizzle Configuration:
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
lapsed_users_ops.ts
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
Key Changes
1. Wildcard Usage: I added
%
symbols around the input.query
to create searchQuery
. This modification tells PostgreSQL to look for any records where the full_name
contains the provided string, regardless of its position.
2. Tested Query: I tested this by passing 'jack' as the query parameter and successfully retrieved users with names like 'Jackson Kasi', confirming that the partial and case-insensitive search was working as expected.
This solution adheres to the ilike
function usage as described in the Drizzle ORM documentation but applies it within the context of the findMany
method, ensuring that it correctly interprets the partial search strings.
Thanks to everyone who took the time to look into this, and I hope this solution helps anyone else facing a similar issue!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’ve managed to resolve the issue with the
ilike
function not returning the expected results when querying user data in a TypeScript environment with PostgreSQL. The problem was that I needed to include wildcard characters %
around the input string to correctly perform the case-insensitive partial search.
Here's the updated code snippet that fixed the issue:
3 replies
DTDrizzle Team
•Created by Jackson Kasi on 4/10/2024 in #help
Issue Querying Table via Drizzle ORM with SQLite
and this is the base code: https://github.com/jacksonkasi1/next-trpc-drizzle-turso
15 replies
DTDrizzle Team
•Created by Jackson Kasi on 4/10/2024 in #help
Issue Querying Table via Drizzle ORM with SQLite
15 replies
DTDrizzle Team
•Created by Jackson Kasi on 4/10/2024 in #help
Issue Querying Table via Drizzle ORM with SQLite
okay then i will share the code soon!
15 replies
DTDrizzle Team
•Created by Jackson Kasi on 4/10/2024 in #help
Issue Querying Table via Drizzle ORM with SQLite
Yes, those are the correct steps to reproduce the issue.
15 replies
DTDrizzle Team
•Created by Jackson Kasi on 4/10/2024 in #help
Issue Querying Table via Drizzle ORM with SQLite
Even the database key, I will add it in the code! Later, I will remove the Turso DB from my account.
15 replies
DTDrizzle Team
•Created by Jackson Kasi on 4/10/2024 in #help
Issue Querying Table via Drizzle ORM with SQLite
yes
15 replies
DTDrizzle Team
•Created by Jackson Kasi on 4/10/2024 in #help
Issue Querying Table via Drizzle ORM with SQLite
Hi @Mykhailo, Can I set up the base code, make it, and then publish it in a public repository? I will share it with you to help me with this issue.
15 replies