Gom.CommandBuilder¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The |
||
r/w |
The filter for the command. |
||
r/w |
The maximum number of results. |
||
r/w/co |
The table to use for many-to-many queries. |
||
r/w/co |
The type for the join within m2m-table. |
||
r/w |
The number of results to skip. |
||
r/w |
The resource type to query for. |
||
r/w |
The sorting for the command. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Gom.CommandBuilder(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- build_count()¶
- Returns:
A
Gom.Command
.- Return type:
Builds a new command that will count the number of rows matching the current query parameters.
- build_create(version)¶
- Parameters:
version (
int
) – the version of the database.- Returns:
A
GLib.List
ofGom.Command
.- Return type:
Builds a list of
Gom.Command
to update the table for the resource_type associated with self up to version.
- build_delete()¶
- Returns:
A
Gom.Command
.- Return type:
Builds a new
Gom.Command
to delete the rows matching the current query params.
- build_insert(resource)¶
- Parameters:
resource (
Gom.Resource
) – aGom.Resource
- Returns:
A
Gom.Command
.- Return type:
Builds a new
Gom.Command
that will insert the parameters of the resource into the underlying database.
- build_select()¶
- Returns:
A
Gom.Command
.- Return type:
Builds a
Gom.Command
that will select all the rows matching the current query params.
- build_update(resource)¶
- Parameters:
resource (
Gom.Resource
) – aGom.Resource
- Returns:
A
Gom.Command
.- Return type:
Builds a new
Gom.Command
that will update the contents stored for resource in the underlying database.
Property Details¶
- Gom.CommandBuilder.props.adapter¶
- Name:
adapter
- Type:
- Default Value:
- Flags:
The
Gom.Adapter
.
- Gom.CommandBuilder.props.filter¶
- Name:
filter
- Type:
- Default Value:
- Flags:
The filter for the command.
- Gom.CommandBuilder.props.limit¶
-
The maximum number of results.
- Gom.CommandBuilder.props.m2m_table¶
- Name:
m2m-table
- Type:
- Default Value:
- Flags:
The table to use for many-to-many queries.
- Gom.CommandBuilder.props.m2m_type¶
- Name:
m2m-type
- Type:
- Default Value:
<GType GomResource>
- Flags:
The type for the join within m2m-table.
- Gom.CommandBuilder.props.offset¶
-
The number of results to skip.
- Gom.CommandBuilder.props.resource_type¶
- Name:
resource-type
- Type:
- Default Value:
<GType GomResource>
- Flags:
The resource type to query for.
- Gom.CommandBuilder.props.sorting¶
- Name:
sorting
- Type:
- Default Value:
- Flags:
The sorting for the command.