Project Query¶
ProjectQueryModel¶
dsgrid.query.models.ProjectQueryModel
Represents a user query on a Project.
Fields¶
Name |
Type |
Default |
Description |
|---|---|---|---|
|
|
(required) |
Name of query |
|
|
|
Version of the query structure. Changes to the major or minor version invalidate cached tables. |
|
|
Controls the output results |
|
|
(required) |
Defines the datasets to use and how to transform them. |
DatasetModel¶
dsgrid.query.models.DatasetModel
Specifies the datasets to use in a project query.
Fields¶
Name |
Type |
Default |
Description |
|---|---|---|---|
|
|
(required) |
Identifier for the resulting dataset |
|
list[ |
(required) |
Datasets from which to read. Each must be of type DatasetBaseModel. |
|
|
|
Expression to combine datasets. Default is to take a union of all datasets. |
|
|
Parameters affecting datasets. Used for caching intermediate tables. |
Validators¶
Name |
Applies To |
Description |
|---|---|---|
|
|
No description |
ProjectQueryDatasetParamsModel¶
dsgrid.query.models.ProjectQueryDatasetParamsModel
Parameters in a project query that only apply to datasets
Fields¶
Name |
Type |
Default |
Description |
|---|---|---|---|
|
list[ |
|
Filters to apply to all datasets |
ProjectQueryParamsModel¶
dsgrid.query.models.ProjectQueryParamsModel
Defines how to transform a project into a CompositeDataset
Fields¶
Name |
Type |
Default |
Description |
|---|---|---|---|
|
|
(required) |
Project ID for query |
|
(required) |
Definition of the dataset to create. |
|
|
list[ |
|
Datasets to exclude from query |
|
|
|
|
|
|
|
Version of project or dataset on which the query is based. Should not be set by the user |
|
list[DatasetMappingPlan] |
|
Defines the order in which to map the dimensions of datasets. |
|
list[RuntimeConfByDataset] |
|
Apply these runtime configuration settings while a dataset is being processed. |
Validators¶
Name |
Applies To |
Description |
|---|---|---|
|
|
No description |
|
|
No description |
|
|
No description |
RuntimeConfByDataset¶
dsgrid.query.models.RuntimeConfByDataset
Defines a custom runtime configuration to use while running a query on a dataset.
Fields¶
Name |
Type |
Default |
Description |
|---|---|---|---|
|
|
(required) |
|
|
dict[ |
(required) |