Gda.DataPivot¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
Data model from which data is analysed |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
object |
r |
Class Details¶
- class Gda.DataPivot(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(model)¶
- Parameters:
model (
Gda.DataModel
orNone
) – aGda.DataModel
to analyse data from, orNone
- Returns:
a pointer to the newly created
Gda.DataModel
.- Return type:
Creates a new
Gda.DataModel
which will contain analysed data from model.
- add_data(aggregate_type, field, alias)¶
- Parameters:
aggregate_type (
Gda.DataPivotAggregate
) – the type of aggregate operation to performfield (
str
) – the field description, see below
- Raises:
- Returns:
True
if no error occurred- Return type:
Specifies that field has to be included in the analysis. field is a field specification with the following accepted syntaxes:
a column name in the source data model (see
gda_data_model_get_column_index()
); oran SQL expression involving a column name in the source data model, for examples:
price firstname || ' ' || lastname nb BETWEEN 5 AND 10
It is also possible to specify several fields to be added, while separating them by a comma (in effect still forming a valid SQL syntax).
New in version 5.0.
- add_field(field_type, field, alias)¶
- Parameters:
field_type (
Gda.DataPivotFieldType
) – the type of field to addfield (
str
) – the field description, see below
- Raises:
- Returns:
True
if no error occurred- Return type:
Specifies that field has to be included in the analysis. field is a field specification with the following accepted syntaxes:
a column name in the source data model (see
gda_data_model_get_column_index()
); oran SQL expression involving a column name in the source data model, for example:
price firstname || ' ' || lastname nb BETWEEN 5 AND 10
It is also possible to specify several fields to be added, while separating them by a comma (in effect still forming a valid SQL syntax).
New in version 5.0.
Property Details¶
- Gda.DataPivot.props.model¶
- Name:
model
- Type:
- Default Value:
- Flags:
Data model from which data is analysed