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)
  3. PreCollection!(TEntity, DatabaseDriver) where(string column, TComparisonOperator op)
    struct PreCollection(TEntity, DatabaseDriver)
    @safe
    PreCollection!(TEntity, DatabaseDriver)
    where
    (
    LogicalOperator logicalJunction = and
    TComparisonOperator
    )
    (
    string column
    ,
    TComparisonOperator op
    )
    if (
    isComparisonOperator!TComparisonOperator
    )
    if (
    isEntityType!TEntity &&
    isORMCompatible!DatabaseDriver
    )
  4. BuiltPreCollection!TEntity select()
  5. EntityCollection!TEntity selectVia(DatabaseDriver db)

Meta