sten
Explore posts from serversDTDrizzle Team
•Created by sten on 8/7/2024 in #help
[solved] The server does not support SSL connections
I am running Drizzle with Postgres in a devcontainer using Docker WSL 2.
In my db file:
In my config:
Despite this, I keep getting the SSL issue.
I am starting my container like this:
CMD ["sh", "-c", "npm run generate && npm run migrate && npm run dev"]
Where the commands correspond to
I am calling generate and migrate to assure that if someone would run this on their system, they've would have the correct tables setup.
UPDATE:
So I removed ssl: { rejectUnauthorized: false }
and it worked, however, upon connecting to the db
docker exec -it postgres_db psql -U postgres -d postgres
, it reveals that I don't have any relations
UPDATE 2:
I noticed that my generate command was wrong
I was using drizzle-kit up
, must have mixed them up somehow1 replies
DTDrizzle Team
•Created by sten on 12/30/2023 in #help
Limitation in Drizzle? findMany does not work the same as an innerjoin, is it possible?
So I want to get all posts with supporters with a specific user_id.
Q1 gives me that but I'd like to do it with Q2 but Q2 gives me all posts instead of just the ones that the user_id is supporting.
UPDATE
I went this Q3 which works fine.
6 replies