ReadQuery
Read onlyYes
FinalYes
Methods
- count() : string
- declareCursor() : DeclareCursorOptionsStep
- isOrdered() : bool
- keySetFirstPage() : string
- The first page: LIMIT $first, no key condition.
- keySetNextPage() : string
- Every later page: LIMIT $first, and the last row's key values from $first + 1 on.
- of() : self
- page() : string
- LIMIT $first OFFSET $first + 1.
- sql() : string
Methods
count()
public
count() : string
Return values
stringdeclareCursor()
public
declareCursor(string $cursorName) : DeclareCursorOptionsStep
Parameters
- $cursorName : string
Return values
DeclareCursorOptionsStepisOrdered()
public
isOrdered() : bool
Return values
boolkeySetFirstPage()
The first page: LIMIT $first, no key condition.
public
keySetFirstPage(KeySet $keySet, int $first) : string
Parameters
- $keySet : KeySet
- $first : int
-
the first placeholder after the caller's parameters
Return values
stringkeySetNextPage()
Every later page: LIMIT $first, and the last row's key values from $first + 1 on.
public
keySetNextPage(KeySet $keySet, int $first) : string
Parameters
- $keySet : KeySet
- $first : int
-
the first placeholder after the caller's parameters
Return values
stringof()
public
static of(Sql|string $query, class-string $extractor) : self
Parameters
- $query : Sql|string
- $extractor : class-string
Tags
Return values
selfpage()
LIMIT $first OFFSET $first + 1.
public
page(int $first) : string
Parameters
- $first : int
-
the first placeholder after the caller's parameters
Return values
stringsql()
public
sql() : string