ktorm icon indicating copy to clipboard operation
ktorm copied to clipboard

exists query (and notExists)

Open dmitchell opened this issue 2 years ago • 0 comments

afaict, to use exists as a query (not a subquery), you need to not only wrap the query with exists but also call .exists on it to force the execution. Am I missing something? It seems very awkward. For example, in my code I have this working but awkward expression (combining not w exists)

 exists(
                database.from(UniversalFeatureFlags).select()
                    .where(UniversalFeatureFlags.featureFlagId eq ALLOW_LEVEL_BIDDING)
            ).notExists

dmitchell avatar Jun 07 '23 13:06 dmitchell