pub fn eq<'a, V, L, R>( left: L, right: R, ) -> SQLExpr<'a, V, Bool, NonNull, Scalar>where V: SQLParam + 'a, L: Expr<'a, V>, R: Expr<'a, V>, L::SQLType: Compatible<R::SQLType>,
Equality comparison (=).
=
Requires both operands to have compatible SQL types.
// ✅ OK: Int compared with i32 eq(users.id, 10); // ✅ OK: Int compared with BigInt (integer family) eq(users.id, users.big_id); // ❌ Compile error: Int cannot be compared with Text eq(users.id, "hello");