ktorm
ktorm copied to clipboard
exists query (and notExists)
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