fed
fed
KKysely
Created by fed on 12/26/2024 in #help
[Bug] innerJoinLateral selectAll prepends schema
that would be ideal, from the perspective of all my use cases
17 replies
KKysely
Created by fed on 12/26/2024 in #help
[Bug] innerJoinLateral selectAll prepends schema
this is a good question a noSchema method on eb (or something else achieving the same effect) would be an ok hack ideally kysely would track these "virtual" tables as separate from the tables initially configured for db. but this could be a huge lift and not worth the effort? (FWIW this is not specific to innerJoinLateral... here's the same thing happening with an innerJoin https://kyse.link/pCg6n -- and it's easy enough to make this happen in doubly nested subqueries, etc)
17 replies
KKysely
Created by fed on 12/26/2024 in #help
[Bug] innerJoinLateral selectAll prepends schema
@koskimas this is my workaround by the way: https://kyse.link/DuUwp as you can see ref works fine, so this is an issue specific to eb problem with the jsonBuildObject workaround is verbosity, especially as the number of fields grows. this also requires a satsifes Expression<....> type check to make sure you keep getting all the expected fields im happy to live with that 👆 for as long as needed
17 replies
KKysely
Created by fed on 12/26/2024 in #help
[Bug] innerJoinLateral selectAll prepends schema
db cannot selectFrom("alien") since "alien" is not a table
17 replies
KKysely
Created by fed on 12/26/2024 in #help
[Bug] innerJoinLateral selectAll prepends schema
17 replies
KKysely
Created by fed on 12/26/2024 in #help
[Bug] innerJoinLateral selectAll prepends schema
that just shifts the issue: * now the subquery comes FROM "public"."alien" (which does not exist) * eb.withSchema is deprecated so shouldnt use that?
17 replies
KKysely
Created by fed on 12/26/2024 in #help
[Bug] innerJoinLateral selectAll prepends schema
here's a close enough repro to what's happening in my environment: https://kyse.link/LdtlM where in the compiled query, the selected "alien_object" comes FROM "skeema"."alien" when it should come FROM "alien"
17 replies
KKysely
Created by fed on 12/26/2024 in #help
[Bug] innerJoinLateral selectAll prepends schema
im not sure withSchema works in kyse.link? see https://kyse.link/PMqfF
17 replies
KKysely
Created by fed on 12/26/2024 in #help
[Bug] innerJoinLateral selectAll prepends schema
also got this to happen in a select subquery, so does not seem specific to innerJoinLateral
17 replies
KKysely
Created by fed on 12/24/2024 in #help
Flatten type of single column select?
nice thanks, i'll keep an eye out
4 replies
KKysely
Created by fed on 11/21/2024 in #help
Improving TS compile speed with multiple conditional selects?
How would one replace many $if with a single $call? Is there a toy example of that somewhere?
6 replies
KKysely
Created by fed on 11/21/2024 in #help
Improving TS compile speed with multiple conditional selects?
Thanks, will try that over the coming weeks
6 replies
KKysely
Created by fed on 11/21/2024 in #help
Improving TS compile speed with multiple conditional selects?
(I should add that some of these optional fields use jsonObjectFrom and I'm aware of https://github.com/kysely-org/kysely/issues/867)
6 replies