d2bayes
Consensus on immutable vs. mutable result for .executeTakeFirst
Hi folks, love Kysely, thanks for your work.
Is there a consensus on whether or not the query result for
executeTakeFirst
should be immutable? Or is this up to the dialect/not a concern of Kysely?
I'm asking because I seem to have found an inconsistency with kysely-libsql where the result of executeTakeFirst
is immutable, but this isn't the case for built-in dialects (checked Sqlite and Pg).
Wanted to get your thoughts on this so I can figure out if it's more appropriate to raise an issue with the dialect or if I should deal with this in a library that integrates Kysely.
Thanks!8 replies