atlantis · Orm
class Query<E>
since 0.1.0-alpha.1linux
Constructors
new
new(Repo<E> repo)Fields
includeDeleted
bool includeDeletedorderParts
Array<string> orderPartsrepo
Repo<E> reposkipN
int skipNtakeN
int takeNtracking
bool trackingwhereBinds
whereHasIn
Array<bool> whereHasInwhereIns
wheres
Array<expr::Node> whereswithFields
Array<string> withFieldsMethods
__clone
__clone() -> Query<E>__colsSql
__colsSql() -> string__orderByTree
__orderByTree(expr::Node t, bool desc) -> Query<E>__selectSql
__selectSql(int forcedLimit) -> SqlAndParams__tailSql
__tailSql() -> string__whereSql
__whereSql(SqlRender r) -> stringall
count
count() -> Promise<int>delete
delete() -> Promise<int>exists
exists() -> Promise<bool>first
first() -> Promise<E>firstOrNone
firstOrNone() -> Promise<E | None>noTrack
noTrack() -> Query<E>orderBy
orderBy(expr::Expr<(E) => string | int | float | bool | None> k) -> Query<E>orderByDesc
orderByDesc(expr::Expr<(E) => string | int | float | bool | None> k) -> Query<E>set
set(expr::Expr<(E) => int> assignment) -> Promise<int>skip
skip(int n) -> Query<E>take
take(int n) -> Query<E>thenBy
thenBy(expr::Expr<(E) => string | int | float | bool | None> k) -> Query<E>thenByDesc
thenByDesc(expr::Expr<(E) => string | int | float | bool | None> k) -> Query<E>toSql
toSql() -> SqlAndParamswhere
where(expr::Expr<(E) => bool> p) -> Query<E>whereIn
whereIn(expr::Expr<(E) => bool> p, Array<string | int | float | bool | None> contents) -> Query<E>with
with<R>(expr::Expr<(E) => R> path) -> Query<E>withDeleted
withDeleted() -> Query<E>