PreCollection.selectVia

SELECTs the requested entities from the database

auto mountains = em.find!Mountain()
    .orderBy("height")
    .limit(25)
    .selectVia(db);

foreach (mt; mountains) {
    // […]
}
  1. BuiltPreCollection!TEntity select()
  2. EntityCollection!TEntity selectVia(DatabaseDriver db)
    struct PreCollection(TEntity, DatabaseDriver)
    @safe
    selectVia
    (
    DatabaseDriver db
    )
    if (
    isEntityType!TEntity &&
    isORMCompatible!DatabaseDriver
    )

Meta