wisie
Explore posts from serversDTDrizzle Team
•Created by wisie on 8/28/2024 in #help
sql placeholder with an array throws an error
when executing this code:
Drizzle throws an error:
syntax error at or near \"$1\
. The code works when I execute the prepared query without the sql.placeholder, hardcoding an argument inside prepQuery
- the error is not reproduced anyway else. Do I need to pass the array of strings there differently? I tried converting it into a string, but that does not work neither.4 replies
DTDrizzle Team
•Created by wisie on 2/9/2024 in #help
cannot generate migrations, getting a weird ReferenceError I don't know how to debug
Hi, I'm trying to generate migrations for my postgres database but I'm getting a very weird
ReferenceError: Cannot access 'users' before initialization
- I have no idea how to debug it, looking for help 🙏 🙏 🙏 🙏
Posting my db files below
Full log at the moment of the error:
the command I'm using is
drizzle-kit generate:pg --config=drizzle.config.ts
drizzle.config.ts
schema/user.ts
2 replies