PreCollection.select

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()
    struct PreCollection(TEntity, DatabaseDriver)
    @safe
    select
    ()
    if (
    isEntityType!TEntity &&
    isORMCompatible!DatabaseDriver
    )
  2. EntityCollection!TEntity selectVia(DatabaseDriver db)

Meta