PreCollection.where

Specifies the filter criteria for the requested data

Adds a WHERE clause to the query.

auto children = em.find!Person()
    .where("age", ComparisonOperator.lessThan, 18)
    .selectVia(db);
  1. PreCollection!(TEntity, DatabaseDriver) where(string column, TComparisonOperator op, DBValue value)
  2. PreCollection!(TEntity, DatabaseDriver) where(string column, TComparisonOperator op, T value)
    struct PreCollection(TEntity, DatabaseDriver)
    @safe
    PreCollection!(TEntity, DatabaseDriver)
    where
    (
    LogicalOperator logicalJunction = and
    TComparisonOperator
    T
    )
    (
    string column
    ,
    TComparisonOperator op
    ,
    const T value
    )
    if (
    isComparisonOperator!TComparisonOperator &&
    )
    if (
    isEntityType!TEntity &&
    isORMCompatible!DatabaseDriver
    )
  3. PreCollection!(TEntity, DatabaseDriver) where(string column, TComparisonOperator op)
  4. BuiltPreCollection!TEntity select()
  5. EntityCollection!TEntity selectVia(DatabaseDriver db)

Meta