Instance Methodgrdb 7.4.0GRDB

contains(_:)

Returns an expression that checks the inclusion of the expression in the subquery.

SQLSubquery.swift:123
func contains(_ element: some SQLExpressible) -> SQLExpression
// 1000 IN (SELECT score FROM player)
let request = Player.select(Column("score"), as: Int.self)
let condition = request.contains(1000)