Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ModelResultIterable<T>

Implementation of the result iterable that returns query results as instances of the defined model.

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

Protected Readonly ModelClass

ModelClass: Instantiable<T>

Readonly builder

builder: ModelBuilder<T>

Readonly connection

connection: Connection

Protected index

index: number = 0

The current index of the iterable.

Accessors

selectSQL

  • get selectSQL(): string

Methods

all

at

  • at(i: number): Promise<undefined | T>

chunk

clone

count

  • count(): Promise<number>

Protected inflateRow

next

peek

  • peek(): Promise<undefined | T>

range

  • range(start: number, end: number): Promise<Collection<T>>

reset

  • reset(): Promise<void>

seek

  • seek(index: number): Promise<void>
Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.