website logo
👥 Community🎯 Samples on GitHub🚦 System Status
💡 Guides
🚀 Examples
🍕 Developer Reference
⚡️ Changelog
🎥 Video Library
Navigate through spaces
⌘K
Overview
Reference
Actions
Data
UI
Widgets
Docs powered by
Archbee
Reference
Data

datasource-definition

37min


Sub Schemas

The schema defines the following additional types:

SqliteDatasourceDefinition (datasource.sqlite)

Properties of the SqliteDatasourceDefinition object:

Property

Type

Required

Description

type

datasource.sqlite

true



instanceId

InstanceId | Expression

false



options

SqliteDatasourceOptions

true



parameters

parameter-definition

false

The datasource parameters.

datasourceId

DatasourceId

false

Used to override the name of this Datasource.

instanceId (InstanceId | Expression)

options (SqliteDatasourceOptions, required)

parameters (parameter-definition)

The datasource parameters.

datasourceId (DatasourceId)

Used to override the name of this Datasource.

SqliteDatasourceOptions (Sqlite Local Options | DATA_PROVIDER_DYNAMIC)

The object must be any of the following types:

SqliteDatasourceOptions (Sqlite Local Options)

Properties of the SqliteDatasourceOptions object:

Property

Type

Required

Description

provider

data-provider-definition

true

The provider that will get/set the data.

entities

Array<data-provider-definition | SqliteDatasourceEntity>

true

The entities that the query will populate.

query

string

true

The Sqlite query to execute.

queryParameters

Expression | Primitive

false

The parameters for the query.

isDocument

boolean

false

Some queries return their result as a single document instead of multiple rows.

jsonProperties

string[] | null

false

An array of columns from the query to automatically parse as JSON objects.

provider (data-provider-definition, required)

The provider that will get/set the data.

entities (Array<data-provider-definition | SqliteDatasourceEntity>, required)

The entities that the query will populate.

The elements of the array must match at least one of the following properties:

entities (data-provider-definition)

entities (SqliteDatasourceEntity)

queryParameters (Expression | Primitive)

The parameters for the query.

jsonProperties (string[] | null)

An array of columns from the query to automatically parse as JSON objects.

The object must be any of the following types:

jsonProperties (string[])

The object is an array with all elements of the type string.

SqliteDatasourceOptions (DATA_PROVIDER_DYNAMIC)

Properties of the SqliteDatasourceOptions object:

Property

Type

Required

Description

provider

DATA_PROVIDER_DYNAMIC

true



entities

Array<data-provider-definition | SqliteDatasourceDynamicEntity>

true



query

string

true

The Sqlite query to execute.

queryParameters

Expression | Primitive

false

The parameters for the query.

isDocument

boolean

false

Some queries return their result as a single document instead of multiple rows.

jsonProperties

string[] | null

false

An array of columns from the query to automatically parse as JSON objects.

entities (Array<data-provider-definition | SqliteDatasourceDynamicEntity>, required)

The elements of the array must match at least one of the following properties:

entities (data-provider-definition)

entities (SqliteDatasourceDynamicEntity)

queryParameters (Expression | Primitive)

The parameters for the query.

jsonProperties (string[] | null)

An array of columns from the query to automatically parse as JSON objects.

The object must be any of the following types:

jsonProperties (string[])

The object is an array with all elements of the type string.

SqliteDatasourceEntity (Sqlite Entity)

Properties of the SqliteDatasourceEntity object:

Property

Type

Required

Description

entity

data-provider-definition

true

The name of the entity.

function

string

false

The name of the function that will be executed.

functionParameters

Expression | Primitive

false

The parameters for the function.

entity (data-provider-definition, required)

The name of the entity.

function (string)

The name of the function that will be executed.

functionParameters (Expression | Primitive)

The parameters for the function.

SqliteDatasourceDynamicEntity (Sqlite Dynamic Entity)

Properties of the SqliteDatasourceDynamicEntity object:

Property

Type

Required

Description

entity

data-provider-definition

true



function

string

false

The name of the function that will be executed.

functionParameters

Expression | Primitive

false

The parameters for the function.

entity (data-provider-definition, required)

function (string)

The name of the function that will be executed.

functionParameters (Expression | Primitive)

The parameters for the function.

StaticDatasourceDefinition (datasource.static)

Properties of the StaticDatasourceDefinition object:

Property

Type

Required

Description

type

datasource.static

true



instanceId

InstanceId | Expression

false



options

StaticDatasourceOptions

true



parameters

parameter-definition

false

The datasource parameters.

datasourceId

DatasourceId

false

Used to override the name of this Datasource.

instanceId (InstanceId | Expression)

options (StaticDatasourceOptions, required)

parameters (parameter-definition)

The datasource parameters.

datasourceId (DatasourceId)

Used to override the name of this Datasource.

StaticDatasourceOptions (Static Datasource Options)

Properties of the StaticDatasourceOptions object:

Property

Type

Required

Description

data



true

Data that will be stored under instance id and can be used in other components.

SystemDatasourceDefinition (datasource.system)

Properties of the SystemDatasourceDefinition object:

Property

Type

Required

Description

type

datasource.system

true



instanceId

InstanceId | Expression

false



options

SystemDatasourceOptions

true



parameters

parameter-definition

false

The datasource parameters.

datasourceId

DatasourceId

false

Used to override the name of this Datasource.

instanceId (InstanceId | Expression)

options (SystemDatasourceOptions, required)

parameters (parameter-definition)

The datasource parameters.

datasourceId (DatasourceId)

Used to override the name of this Datasource.

SystemDatasourceOptions (System Datasource)

Properties of the SystemDatasourceOptions object:

Property

Type

Required

Description

source

SystemSourceType

true

Source of system data that can be used in other components.

source (SystemSourceType, required)

Source of system data that can be used in other components.

Updated 25 Sep 2023
Did this page help you?
PREVIOUS
database-definition
NEXT
jd-sqlite
Docs powered by
Archbee
TABLE OF CONTENTS
Sub Schemas
SqliteDatasourceDefinition (datasource.sqlite)
instanceId (InstanceId | Expression)
options (SqliteDatasourceOptions, required)
parameters (parameter-definition)
datasourceId (DatasourceId)
SqliteDatasourceOptions (Sqlite Local Options | DATA_PROVIDER_DYNAMIC)
SqliteDatasourceOptions (Sqlite Local Options)
provider (data-provider-definition, required)
entities (Array<data-provider-definition | SqliteDatasourceEntity>, required)
entities (data-provider-definition)
entities (SqliteDatasourceEntity)
queryParameters (Expression | Primitive)
jsonProperties (string[] | null)
jsonProperties (string[])
SqliteDatasourceOptions (DATA_PROVIDER_DYNAMIC)
entities (Array<data-provider-definition | SqliteDatasourceDynamicEntity>, required)
entities (data-provider-definition)
entities (SqliteDatasourceDynamicEntity)
queryParameters (Expression | Primitive)
jsonProperties (string[] | null)
jsonProperties (string[])
SqliteDatasourceEntity (Sqlite Entity)
entity (data-provider-definition, required)
function (string)
functionParameters (Expression | Primitive)
SqliteDatasourceDynamicEntity (Sqlite Dynamic Entity)
entity (data-provider-definition, required)
function (string)
functionParameters (Expression | Primitive)
StaticDatasourceDefinition (datasource.static)
instanceId (InstanceId | Expression)
options (StaticDatasourceOptions, required)
parameters (parameter-definition)
datasourceId (DatasourceId)
StaticDatasourceOptions (Static Datasource Options)
SystemDatasourceDefinition (datasource.system)
instanceId (InstanceId | Expression)
options (SystemDatasourceOptions, required)
parameters (parameter-definition)
datasourceId (DatasourceId)
SystemDatasourceOptions (System Datasource)
source (SystemSourceType, required)
Docs powered by
Archbee
Copyright © 2023 Jigx, Inc. All rights reserved. Terms of Service