Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DatabaseQueryModel<T>

Type parameters

  • T

Hierarchy

  • DatabaseQueryModel

Index

Properties

change

change: Subject<void> = new Subject<void>()

disableInstancePooling

disableInstancePooling: boolean = false

Optional filter

filter: undefined | {}

joins

joins: { as?: undefined | string; classSchema: ClassSchema<any>; foreignPrimaryKey: PropertySchema; populate: boolean; propertySchema: PropertySchema; query: JoinDatabaseQuery<any, any>; type: "left" | "inner" }[] = []

Optional limit

limit: undefined | number

parameters

parameters: {}

Type declaration

  • [name: string]: any

select

select: Set<string> = new Set<string>()

Optional skip

skip: undefined | number

Optional sort

sort: SORT<T>

Methods

changed

  • changed(): void
  • Returns void

clone

getFirstSelect

  • getFirstSelect(): any
  • Returns any

hasJoins

  • hasJoins(): boolean
  • Returns boolean

isPartial

  • isPartial(): boolean
  • Whether only a subset of fields are selected.

    Returns boolean

isSelected

  • isSelected(field: string): boolean
  • Parameters

    • field: string

    Returns boolean

Generated using TypeDoc