b0o
Explore posts from serversTTCTheo's Typesafe Cult
•Created by b0o on 12/13/2023 in #questions
t3-env in a monorepo
Hey @Rhys as reece, I just opened a PR on the t3-env repo that adds support for extending envs. Since you're doing something similar in AnswerOverflow, I was wondering if you could offer any feedback and let me know if you like this approach? https://github.com/t3-oss/t3-env/pull/158
10 replies
TTCTheo's Typesafe Cult
•Created by b0o on 12/13/2023 in #questions
t3-env in a monorepo
Quick question, can I ask why in your env package you have shared.ts as well as shared-schema.mjs, which seems to be very similar? Same with web.ts and web-schema.mjs
10 replies
TTCTheo's Typesafe Cult
•Created by b0o on 12/13/2023 in #questions
t3-env in a monorepo
Nice, thanks for sharing!
10 replies
DTDrizzle Team
•Created by b0o on 6/27/2023 in #help
Why is insertId a string, not a number?
This was answered in tweet: MySQL does not provide returning and you always have to make an extra select and we don't do anything implicitly. That's a little less DX, but in a long run it's a win for everybody
10 replies
DTDrizzle Team
•Created by b0o on 6/27/2023 in #help
Why is insertId a string, not a number?
10 replies
DTDrizzle Team
•Created by b0o on 6/27/2023 in #help
Why is insertId a string, not a number?
It doesn't have
returning
😦 I wish it did10 replies
DTDrizzle Team
•Created by b0o on 6/27/2023 in #help
Why is insertId a string, not a number?
10 replies
DTDrizzle Team
•Created by b0o on 6/27/2023 in #help
Why is insertId a string, not a number?
Actually, I think this has nothing to do with drizzle, it seems it's coming from PlanetScale's database.js:
https://github.com/planetscale/database-js/blob/8b1a360abd9b7b28ab953984e2aa9bd242d8a169/src/index.ts#L27
10 replies
Can't get wsLink's retryDelayMs to work
The issue arises from the way
wsLink
resets the connectAttempt
counter upon a successful connection. This make total sense. However, in my case, my WebSocket server validates a session cookie in the connect
event handler, and closes the connection on an invalid session. The connectAttempt
counter is still reset, because this is a successful connection followed immediately by a close()
.
Maybe it would make sense to only reset the connectAttempt
counter after a successful request/response from the WebSocket server.3 replies