Skip to main content

Class: DataQuery

dg.DataQuery

Represents a data query

Hierarchy

Constructors

constructor

new DataQuery(dart)

Constructs

DataQuery

Parameters

NameType
dartany

Overrides

Func.constructor

Defined in

src/entities.ts:397

Properties

aux

aux: any

Inherited from

Func.aux

Defined in

src/entities.ts:220


dart

dart: any

Inherited from

Func.dart

Defined in

src/entities.ts:67


options

options: Object

Index signature

[key: string]: any

Inherited from

Func.options

Defined in

src/entities.ts:221

Accessors

adHoc

get adHoc(): boolean

Deprecated

Use FuncCall.adHoc instead *

Returns

boolean

Defined in

src/entities.ts:402

set adHoc(a): void

Deprecated

Use FuncCall.adHoc instead *

Parameters

NameType
aboolean

Returns

void

Defined in

src/entities.ts:404


author

get author(): User

Who created entity *

Returns

User

Inherited from

Func.author

Defined in

src/entities.ts:104


connection

get connection(): DataConnection

Returns

DataConnection

Defined in

src/entities.ts:410

set connection(c): void

Parameters

NameType
cDataConnection

Returns

void

Defined in

src/entities.ts:411


createdOn

get createdOn(): Dayjs

Time when entity was created *

Returns

Dayjs

Inherited from

Func.createdOn

Defined in

src/entities.ts:98


description

get description(): string

Returns

string

Inherited from

Func.description

Defined in

src/entities.ts:230


friendlyName

get friendlyName(): string

Entity friendly name

Returns

string

Inherited from

Func.friendlyName

Defined in

src/entities.ts:84

set friendlyName(x): void

Parameters

NameType
xstring

Returns

void

Inherited from

Func.friendlyName

Defined in

src/entities.ts:85


helpUrl

get helpUrl(): string

Help URL.

Returns

string

Inherited from

Func.helpUrl

Defined in

src/entities.ts:237


id

get id(): string

Entity ID (GUID)

Returns

string

Inherited from

Func.id

Defined in

src/entities.ts:76

set id(x): void

Parameters

NameType
xstring

Returns

void

Inherited from

Func.id

Defined in

src/entities.ts:77


inputs

get inputs(): Property[]

Input parameters

Returns

Property[]

Inherited from

Func.inputs

Defined in

src/entities.ts:248


name

get name(): string

Entity short name

Returns

string

Inherited from

Func.name

Defined in

src/entities.ts:88

set name(x): void

Parameters

NameType
xstring

Returns

void

Inherited from

Func.name

Defined in

src/entities.ts:89


nqName

get nqName(): string

Entity full-qualified name

Returns

string

Inherited from

Func.nqName

Defined in

src/entities.ts:92


outputs

get outputs(): Property[]

Output parameters

Returns

Property[]

Inherited from

Func.outputs

Defined in

src/entities.ts:253


package

get package(): Package

A package this function belongs to.

Returns

Package

Inherited from

Func.package

Defined in

src/entities.ts:240


path

get path(): string

Entity path

Returns

string

Inherited from

Func.path

Defined in

src/entities.ts:234


query

get query(): string

Query text

Returns

string

Defined in

src/entities.ts:407

set query(q): void

Parameters

NameType
qstring

Returns

void

Defined in

src/entities.ts:408


type

get type(): string

Returns

string

Inherited from

Func.type

Defined in

src/entities.ts:232


updatedOn

get updatedOn(): Dayjs

Time when entity was updated *

Returns

Dayjs

Inherited from

Func.updatedOn

Defined in

src/entities.ts:101

Methods

apply

apply(parameters?): Promise<any>

Executes the function with the specified {link parameters}, and returns result. If necessary, the corresponding package will be loaded as part of the call.

Parameters

NameType
parametersany[] | { [name: string]: any; }

Returns

Promise<any>

Inherited from

Func.apply

Defined in

src/entities.ts:261


applySync

applySync(parameters?): any

Executes the function synchronously, and returns the result. If the function is asynchronous, throws an exception.

Parameters

NameType
parametersObject

Returns

any

Inherited from

Func.applySync

Defined in

src/entities.ts:277


executeTable

executeTable(): Promise<DataFrame>

Executes query

Returns

Promise<DataFrame>

Defined in

src/entities.ts:415


getProperties

getProperties(): Promise<{ [index: string]: any; }>

Gets entity properties

Returns

Promise<{ [index: string]: any; }>

Inherited from

Func.getProperties

Defined in

src/entities.ts:107


hasTag

hasTag(tag): boolean

Parameters

NameType
tagstring

Returns

boolean

Inherited from

Func.hasTag

Defined in

src/entities.ts:119


newId

newId(): void

Generates new id for this entity.

Returns

void

Inherited from

Func.newId

Defined in

src/entities.ts:80


prepare

prepare(parameters?): FuncCall

Returns FuncCall object in a stand-by state

Parameters

NameType
parametersObject

Returns

FuncCall

Inherited from

Func.prepare

Defined in

src/entities.ts:243


setProperties

setProperties(props): Promise<any>

Sets entity properties

Parameters

NameType
propsObject

Returns

Promise<any>

Inherited from

Func.setProperties

Defined in

src/entities.ts:112


tag

tag(tag): boolean

Adds a specified tag

Parameters

NameType
tagstring

Returns

boolean

Inherited from

Func.tag

Defined in

src/entities.ts:122


toString

toString(): string

Returns a string representing the object

Returns

string

Inherited from

Func.toString

Defined in

src/entities.ts:117


unTag

unTag(tag): boolean

Removes a specified tag

Parameters

NameType
tagstring

Returns

boolean

Inherited from

Func.unTag

Defined in

src/entities.ts:125


byName

Static byName(name): Func

Returns a function with the specified name.

Parameters

NameType
namestring

Returns

Func

Inherited from

Func.byName

Defined in

src/entities.ts:298


find

Static find(params?): Func[]

Returns functions with the specified attributes.

Parameters

NameType
params?Object
params.meta?any
params.name?string
params.package?string
params.returnSemType?string
params.returnType?string
params.tags?string[]

Returns

Func[]

Inherited from

Func.find

Defined in

src/entities.ts:282


findAll

Static findAll(params?): Promise<Func[]>

Deprecated

Use find, it's the same now but does not make a server query and synchronous.

Parameters

NameType
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

Func.findAll

Defined in

src/entities.ts:289