TableQuery
Represents a table query
Extends
Constructors
new TableQuery()
new TableQuery(
dart):TableQuery
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
Overrides
Constructs
TableQuery
Source
Properties
| Property | Modifier | Type | Inherited from |
|---|---|---|---|
aux | public | any | DataQuery.aux |
dart | public | any | DataQuery.dart |
options | public | object | DataQuery.options |
Accessors
adHoc
getadHoc():boolean
Deprecated
Use FuncCall.adHoc instead *
setadHoc(a):void
Deprecated
Use FuncCall.adHoc instead *
Parameters
| Parameter | Type |
|---|---|
a | boolean |
Returns
boolean
Source
aggregations
getaggregations():GroupAggregation[]
Aggregation clauses {queryPartParams}
setaggregations(wl):void
Parameters
| Parameter | Type |
|---|---|
wl | GroupAggregation[] |
Returns
GroupAggregation[]
Source
author
getauthor():User
Who created entity *
Returns
Source
connection
getconnection():DataConnection
setconnection(c):void
Parameters
| Parameter | Type |
|---|---|
c | DataConnection |
Returns
Source
createdOn
getcreatedOn():Dayjs
Time when entity was created *
Returns
Dayjs
Source
description
getdescription():string
Returns
string
Source
fields
getfields():string[]
Fields array
setfields(fields):void
Parameters
| Parameter | Type |
|---|---|
fields | string[] |
Returns
string[]
Source
friendlyName
getfriendlyName():string
Entity friendly name
setfriendlyName(x):void
Parameters
| Parameter | Type |
|---|---|
x | string |
Returns
string
Source
having
gethaving():FieldPredicate[]
Having clauses
sethaving(wl):void
Parameters
| Parameter | Type |
|---|---|
wl | FieldPredicate[] |
Returns
FieldPredicate[]
Source
helpUrl
gethelpUrl():string
Help URL.
sethelpUrl(url):void
Parameters
| Parameter | Type |
|---|---|
url | string |
Returns
string
Source
id
getid():string
Entity ID (GUID)
setid(x):void
Parameters
| Parameter | Type |
|---|---|
x | string |
Returns
string
Source
inputs
getinputs():Property[]
Input parameters
Returns
Property[]
Source
isVectorFunc
getisVectorFunc():boolean
Indicates that the function (or script) is already vector, meaning it accepts vector input (an entire column) and processes it in a single call, rather than being executed separately for each scalar element (row)
Returns
boolean
Source
name
getname():string
Entity short name
setname(x):void
Parameters
| Parameter | Type |
|---|---|
x | string |
Returns
string
Source
nqName
getnqName():string
Entity full-qualified name
Returns
string
Source
orderBy
getorderBy():FieldOrder[]
Order By clauses
setorderBy(wl):void
Parameters
| Parameter | Type |
|---|---|
wl | FieldOrder[] |
Returns
FieldOrder[]
Source
outputs
getoutputs():Property[]
Output parameters
Returns
Property[]
Source
package
getpackage():Package
A package this function belongs to.
Returns
Source
path
getpath():string
Entity path
Returns
string
Source
postProcessScript
getpostProcessScript():string
setpostProcessScript(script):void
Parameters
| Parameter | Type |
|---|---|
script | string |
Returns
string
Source
query
getquery():string
Query text
setquery(q):void
Parameters
| Parameter | Type |
|---|---|
q | string |
Returns
string
Source
table
gettable():string
Table name
settable(tableName):void
Parameters
| Parameter | Type |
|---|---|
tableName | string |
Returns
string
Source
type
gettype():string
Returns
string
Source
updatedOn
getupdatedOn():null|Dayjs
Time when entity was updated *
Returns
null | Dayjs
Source
where
getwhere():FieldPredicate[]
Where clauses
setwhere(wl):void
Parameters
| Parameter | Type |
|---|---|
wl | FieldPredicate[] |
Returns
FieldPredicate[]
Source
Methods
apply()
apply(
parameters):Promise<any>
Executes the function with the specified parameters, and returns result. If necessary, the corresponding package will be loaded as part of the call.
Parameters
| Parameter | Type |
|---|---|
parameters | any[] | object |
Returns
Promise<any>
Inherited from
Source
applySync()
applySync(
parameters):any
Executes the function synchronously, and returns the result. If the function is asynchronous, throws an exception.
Parameters
| Parameter | Type |
|---|---|
parameters | object |
Returns
any
Inherited from
Source
executeTable()
executeTable():
Promise<DataFrame>
Executes query
Returns
Promise <DataFrame>
Overrides
Source
getProperties()
getProperties():
Promise<object>
Gets entity properties
Returns
Promise<object>
Inherited from
Source
hasTag()
hasTag(
tag):boolean
Parameters
| Parameter | Type |
|---|---|
tag | string |
Returns
boolean
Inherited from
Source
newId()
newId():
void
Generates new id for this entity.
Returns
void
Inherited from
Source
prepare()
prepare(
parameters):FuncCall
Returns FuncCall object in a stand-by state
Parameters
| Parameter | Type |
|---|---|
parameters | object |
Returns
Inherited from
Source
prepareAsync()
prepareAsync(
parameters):Promise<FuncCall>
Parameters
| Parameter | Type |
|---|---|
parameters | object |
Returns
Promise <FuncCall>
Inherited from
Source
setProperties()
setProperties(
props):Promise<any>
Sets entity properties
Parameters
| Parameter | Type |
|---|---|
props | object |
Returns
Promise<any>
Inherited from
Source
tag()
tag(
tag):boolean
Adds a specified tag
Parameters
| Parameter | Type |
|---|---|
tag | string |
Returns
boolean
Inherited from
Source
toString()
toString():
string
Returns a string representing the object
Returns
string
Inherited from
Source
unTag()
unTag(
tag):boolean
Removes a specified tag
Parameters
| Parameter | Type |
|---|---|
tag | string |
Returns
boolean
Inherited from
Source
byName()
staticbyName(name):Func
Returns a function with the specified name.
Parameters
| Parameter | Type |
|---|---|
name | string |
Returns
Inherited from
Source
create()
staticcreate(connection):TableQuery
Creates a TableQuery
Parameters
| Parameter | Type | Description |
|---|---|---|
connection | DataConnection | DataConnection to query table from |
Returns
Source
find()
staticfind(params?):Func[]
Returns functions with the specified attributes.
Parameters
| Parameter | Type |
|---|---|
params? | object |
params.meta? | any |
params.name? | string |
params.package? | string |
params.returnSemType? | string |
params.returnType? | string |
params.tags? | string[] |
Returns
Func[]
Inherited from
Source
findAll()
staticfindAll(params?):Promise<Func[]>
Parameters
| Parameter | Type |
|---|---|
params? | object |
params.meta? | any |
params.name? | string |
params.package? | string |
params.returnSemType? | string |
params.returnType? | string |
params.tags? | string[] |
Returns
Promise <Func[]>
Inherited from
Deprecated
Use find, it's the same now but does not make a server query and synchronous.
Source
from()
staticfrom(table):TableQueryBuilder
Creates TableQueryBuilder from table name
Parameters
| Parameter | Type | Description |
|---|---|---|
table | string | Table name |
Returns
Source
fromTable()
staticfromTable(table):TableQueryBuilder
Creates TableQueryBuilder from TableInfo
Parameters
| Parameter | Type | Description |
|---|---|---|
table | TableInfo | TableInfo object |