oof2win2
oof2win2
Explore posts from servers
KKysely
Created by oof2win2 on 9/25/2024 in #help
Implementing D1 batching (getting typed queries as input and returning typed InferResult)
because no return types would work for those three
16 replies
KKysely
Created by oof2win2 on 9/25/2024 in #help
Implementing D1 batching (getting typed queries as input and returning typed InferResult)
hmm so i can probably just have a type that accepts any query and executes it with no result
16 replies
KKysely
Created by oof2win2 on 9/25/2024 in #help
Implementing D1 batching (getting typed queries as input and returning typed InferResult)
like 10-20 on average maybe? i have instances where i also run say ~3k queries at once. defo could be optimized into say inserting more values (one case) but then sqlite limit of 1k variables throttles it quite a bit, and then update queries can't really be grouped (besides adding a CTE or a temp table or something)
16 replies
KKysely
Created by oof2win2 on 9/25/2024 in #help
Implementing D1 batching (getting typed queries as input and returning typed InferResult)
per se i think i'm really asking for a way to represent an array of queries with type safety, since i can get the result type with InferResult<Query>
16 replies
KKysely
Created by oof2win2 on 9/25/2024 in #help
Implementing D1 batching (getting typed queries as input and returning typed InferResult)
like the easiest way from a type perspective is probably getting compiledquery inputs and not returning anything (not ideal tho)
16 replies
KKysely
Created by oof2win2 on 9/25/2024 in #help
Implementing D1 batching (getting typed queries as input and returning typed InferResult)
like is this possible
16 replies
KKysely
Created by oof2win2 on 9/25/2024 in #help
Implementing D1 batching (getting typed queries as input and returning typed InferResult)
the executeBatch method gets the compiled queries and the intention it returns an array of queryresponses
16 replies
KKysely
Created by oof2win2 on 9/25/2024 in #help
Implementing D1 batching (getting typed queries as input and returning typed InferResult)
16 replies
KKysely
Created by oof2win2 on 7/22/2024 in #help
why is WhereNode.where any operation node?
i see
5 replies
KKysely
Created by oof2win2 on 6/28/2024 in #help
Accessing underlying methods on the client
koksimas has a point though, the typings need to be correct. kysely is a type-first client and there can't be a half-baked feature, even though it is something a lot of people would want
7 replies
KKysely
Created by oof2win2 on 6/28/2024 in #help
Accessing underlying methods on the client
ooh okay
7 replies