I am a Dev
Explore posts from serversHello, is there any way to create a base router with common procedures? like an interface
I'm using electron-trpc, so basically the router is like a store, so I can use all the node logic in the main process, but subscribe to the state in the renderer.
And because I have more than 30 store like this, want to create common hooks and interfaces
8 replies
TTCTheo's Typesafe Cult
β’Created by I am a Dev on 10/5/2023 in #questions
with t3 what do you use to stream open ai chat gpt responses?
Custom express endpoint?
Web socket with custom Chanel per request?
Thanks
4 replies
DTDrizzle Team
β’Created by I am a Dev on 10/3/2023 in #help
Drizzle support SELECT FOR UPDATE of postgres to avoid logical race conditions ?
I will try tomorrow π
23 replies
DTDrizzle Team
β’Created by I am a Dev on 10/3/2023 in #help
Drizzle support SELECT FOR UPDATE of postgres to avoid logical race conditions ?
Yes, I tested with 20k items at works fine
23 replies
DTDrizzle Team
β’Created by I am a Dev on 10/3/2023 in #help
Drizzle support SELECT FOR UPDATE of postgres to avoid logical race conditions ?
Yes, also you can add select pg_sleep(5) before commit, and call it from multiple clients and it do correct the row lock
23 replies
DTDrizzle Team
β’Created by I am a Dev on 10/3/2023 in #help
Drizzle support SELECT FOR UPDATE of postgres to avoid logical race conditions ?
It's something like that
23 replies
DTDrizzle Team
β’Created by I am a Dev on 10/3/2023 in #help
Drizzle support SELECT FOR UPDATE of postgres to avoid logical race conditions ?
In prisma I use raw sql since it not support
select ... for update
, but I can't figure out how to do it with drizzle methods23 replies
DTDrizzle Team
β’Created by I am a Dev on 10/3/2023 in #help
Drizzle support SELECT FOR UPDATE of postgres to avoid logical race conditions ?
I make this work with Prisma and node-postgres, I try to migrate it to drizzle, but I can't π¦
23 replies
DTDrizzle Team
β’Created by I am a Dev on 10/3/2023 in #help
Drizzle support SELECT FOR UPDATE of postgres to avoid logical race conditions ?
I tried with this, but this is called 50 time but only increment the counter 1 time, not like the expected behavior
23 replies
DTDrizzle Team
β’Created by I am a Dev on 10/3/2023 in #help
Drizzle support SELECT FOR UPDATE of postgres to avoid logical race conditions ?
For example how to do this statement?
23 replies
How to return a stream? like open ai api
Thanks, I will check it.
Meantime, how can I make each subscription return a different value for each request?
for example, each chat completion request must be different for each user, and only each user can listen the response.
Thanks
5 replies
PD𧩠Plasmo Developers
β’Created by I am a Dev on 9/19/2023 in #π°newbie
There is a difference in the developer experience building the options page vs normal web with vite?
I mean hot reload and hmr
3 replies