qraft-core 0.1.2

Core type system, query model, decoding, and SQL lowering primitives for qraft.
Documentation
//! Predicate lowering for `having` clauses.

use crate::{Boolean, expression::Expression, lower::LowerCtx};

/// Lowers a predicate into a `having` clause.
pub trait LowerHaving {
    /// Appends the predicate to the lowering context.
    fn lower_having(self, ctx: &mut LowerCtx);
}

impl<E> LowerHaving for E
where
    E: Expression,
    E::Type: Boolean,
{
    fn lower_having(self, ctx: &mut LowerCtx) {
        self.lower(ctx);
    }
}