Search
Preparing search index...
The search index is not available
@mavenomics/mql
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
QueryEngine
Class QueryEngine
Hierarchy
QueryEngine
Index
Constructors
constructor
Properties
enable
Cell
Errors
from
Table
group
ByClause
having
Clause
order
ByClause
parent
preserve
Grouping
select
Clause
top
where
Clause
Methods
Create
From
Row
Create
From
Rows
_execute
_group
Nodes
_having
Nodes
_select
Node
Children
_start
Group
Nodes
_start
Order
Nodes
apply
Rollup
compare
Nodes
execute
finish
Where
Clause
group
Nodes
having
Nodes
make
Column
Def
make
Group
By
make
Order
By
make
Select
Star
order
Nodes
select
Nodes
start
Group
Nodes
start
Order
Nodes
start
Where
Clause
where
Nodes
copy
Row
Recursive
copy
Table
Flat
Constructors
constructor
new
Query
Engine
(
parent
?:
QueryEngine
)
:
QueryEngine
Parameters
Default value
parent:
QueryEngine
= null
Returns
QueryEngine
Properties
enable
Cell
Errors
enable
Cell
Errors
:
boolean
= true
from
Table
from
Table
:
function
Type declaration
(
cb
:
MqlCallback
)
:
Table
|
Promise
<
Table
>
Parameters
cb:
MqlCallback
Returns
Table
|
Promise
<
Table
>
group
ByClause
group
ByClause
:
GroupByClause
having
Clause
having
Clause
:
function
Type declaration
(
node
:
Row
, cb
:
MqlCallback
)
:
any
Parameters
node:
Row
cb:
MqlCallback
Returns
any
order
ByClause
order
ByClause
:
OrderByClause
Private
parent
parent
:
QueryEngine
preserve
Grouping
preserve
Grouping
:
boolean
= true
select
Clause
select
Clause
:
ColumnDefinition
[]
top
top
:
number
= -1
where
Clause
where
Clause
:
function
Type declaration
(
node
:
Row
, cb
:
MqlCallback
)
:
any
Parameters
node:
Row
cb:
MqlCallback
Returns
any
Methods
Private
Create
From
Row
Create
From
Row
(
row
:
Row
)
:
TempNode
Parameters
row:
Row
Returns
TempNode
Private
Create
From
Rows
Create
From
Rows
(
rows
:
Row
[]
)
:
TempNode
[]
Parameters
rows:
Row
[]
Returns
TempNode
[]
_execute
_execute
(
)
:
Promise
<
Table
>
Returns
Promise
<
Table
>
Private
_group
Nodes
_group
Nodes
(
outputTable
:
Table
, nodes
:
TempNode
[]
, level
:
number
)
:
TempNode
[]
Parameters
outputTable:
Table
nodes:
TempNode
[]
level:
number
Returns
TempNode
[]
_having
Nodes
_having
Nodes
(
root
:
TempNode
, cb
:
MqlCallback
)
:
void
Parameters
root:
TempNode
cb:
MqlCallback
Returns
void
_select
Node
Children
_select
Node
Children
(
outputTable
:
Table
, nodes
:
TempNode
[]
, parent
:
Row
|
null
, deferrals
:
function
[]
)
:
function
[]
Parameters
outputTable:
Table
nodes:
TempNode
[]
parent:
Row
|
null
deferrals:
function
[]
Returns
function
[]
Private
_start
Group
Nodes
_start
Group
Nodes
(
nodes
:
TempNode
[]
, cb
:
MqlCallback
<
void
>
)
:
void
Parameters
nodes:
TempNode
[]
cb:
MqlCallback
<
void
>
Returns
void
_start
Order
Nodes
_start
Order
Nodes
(
root
:
TempNode
, cb
:
MqlCallback
)
:
Promise
<
void
>
Parameters
root:
TempNode
cb:
MqlCallback
Returns
Promise
<
void
>
apply
Rollup
apply
Rollup
(
node
:
TempNode
, maxDepth
:
number
)
:
void
Parameters
node:
TempNode
maxDepth:
number
Returns
void
compare
Nodes
compare
Nodes
(
left
:
TempNode
, right
:
TempNode
)
:
0
|
1
|
-1
Parameters
left:
TempNode
right:
TempNode
Returns
0
|
1
|
-1
execute
execute
(
)
:
Promise
<
Table
>
Returns
Promise
<
Table
>
finish
Where
Clause
finish
Where
Clause
(
nodes
:
Row
[]
, filterMap
:
boolean
[]
)
:
Row
[]
Parameters
nodes:
Row
[]
filterMap:
boolean
[]
Returns
Row
[]
group
Nodes
group
Nodes
(
outputTable
:
Table
, root
:
TempNode
)
:
TempNode
Parameters
outputTable:
Table
root:
TempNode
Returns
TempNode
having
Nodes
having
Nodes
(
root
:
TempNode
)
:
Promise
<
unknown
>
Parameters
root:
TempNode
Returns
Promise
<
unknown
>
make
Column
Def
make
Column
Def
(
name
:
string
, selector
:
ResultSelector
)
:
ColumnDefinition
Parameters
name:
string
selector:
ResultSelector
Returns
ColumnDefinition
make
Group
By
make
Group
By
(
resultSelectors
:
ResultSelector
[]
, withRollup
:
boolean
, withLeaves
:
boolean
)
:
GroupByClause
Parameters
resultSelectors:
ResultSelector
[]
withRollup:
boolean
withLeaves:
boolean
Returns
GroupByClause
make
Order
By
make
Order
By
(
defs
:
any
[]
)
:
OrderByClause
Parameters
defs:
any
[]
Returns
OrderByClause
make
Select
Star
make
Select
Star
(
)
:
ColumnDefinition
Returns
ColumnDefinition
order
Nodes
order
Nodes
(
root
:
TempNode
)
:
void
Parameters
root:
TempNode
Returns
void
select
Nodes
select
Nodes
(
outputTable
:
Table
, node
:
TempNode
, parent
:
Row
|
null
, cb
:
MqlCallback
<
Table
>
)
:
void
Parameters
outputTable:
Table
node:
TempNode
parent:
Row
|
null
cb:
MqlCallback
<
Table
>
Returns
void
start
Group
Nodes
start
Group
Nodes
(
root
:
TempNode
)
:
Promise
<
unknown
>
Parameters
root:
TempNode
Returns
Promise
<
unknown
>
start
Order
Nodes
start
Order
Nodes
(
root
:
TempNode
)
:
Promise
<
unknown
>
Parameters
root:
TempNode
Returns
Promise
<
unknown
>
start
Where
Clause
start
Where
Clause
(
nodes
:
Row
[]
, done
:
MqlCallback
<
boolean
[]
>
)
:
void
Parameters
nodes:
Row
[]
done:
MqlCallback
<
boolean
[]
>
Returns
void
where
Nodes
where
Nodes
(
nodes
:
Row
[]
)
:
Promise
<
Row
[]
>
Parameters
nodes:
Row
[]
Returns
Promise
<
Row
[]
>
Static
copy
Row
Recursive
copy
Row
Recursive
(
table
:
Table
, row
:
Row
)
:
void
Parameters
table:
Table
row:
Row
Returns
void
Static
copy
Table
Flat
copy
Table
Flat
(
table
:
Table
)
:
Table
Parameters
table:
Table
Returns
Table
Globals
Query
Engine
constructor
enable
Cell
Errors
from
Table
group
ByClause
having
Clause
order
ByClause
parent
preserve
Grouping
select
Clause
top
where
Clause
Create
From
Row
Create
From
Rows
_execute
_group
Nodes
_having
Nodes
_select
Node
Children
_start
Group
Nodes
_start
Order
Nodes
apply
Rollup
compare
Nodes
execute
finish
Where
Clause
group
Nodes
having
Nodes
make
Column
Def
make
Group
By
make
Order
By
make
Select
Star
order
Nodes
select
Nodes
start
Group
Nodes
start
Order
Nodes
start
Where
Clause
where
Nodes
copy
Row
Recursive
copy
Table
Flat
Generated using
TypeDoc