Top | ![]() |
![]() |
![]() |
![]() |
GomAdapter * | adapter | Read / Write / Construct Only |
GomFilter * | filter | Read / Write |
guint | limit | Read / Write |
gchar * | m2m-table | Read / Write / Construct Only |
GType * | m2m-type | Read / Write / Construct Only |
guint | offset | Read / Write |
GType * | resource-type | Read / Write |
GomSorting * | sorting | Read / Write |
#define GOM_COMMAND_BUILDER_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GOM_TYPE_COMMAND_BUILDER, GomCommandBuilder const))
GomCommand *
gom_command_builder_build_count (GomCommandBuilder *builder
);
Builds a new command that will count the number of rows matching the current query parameters.
GomCommand *
gom_command_builder_build_delete (GomCommandBuilder *builder
);
Builds a new GomCommand to delete the rows matching the current query params.
GomCommand *
gom_command_builder_build_select (GomCommandBuilder *builder
);
Builds a GomCommand that will select all the rows matching the current query params.
GomCommand * gom_command_builder_build_insert (GomCommandBuilder *builder
,GomResource *resource
);
Builds a new GomCommand that will insert the parameters of the resource into the underlying database.
GomCommand * gom_command_builder_build_update (GomCommandBuilder *builder
,GomResource *resource
);
Builds a new GomCommand that will update the contents stored for resource
in the underlying database.
GList * gom_command_builder_build_create (GomCommandBuilder *builder
,guint version
);
Builds a list of GomCommand to update the table for the
resource_type associated with builder
up to version
.
“limit”
property “limit” guint
The maximum number of results.
Flags: Read / Write
Default value: 0
“m2m-table”
property “m2m-table” gchar *
The table to use for many-to-many queries.
Flags: Read / Write / Construct Only
Default value: NULL
“m2m-type”
property “m2m-type” GType *
The type for the join within m2m-table.
Flags: Read / Write / Construct Only
Allowed values: GomResource
“offset”
property “offset” guint
The number of results to skip.
Flags: Read / Write
Default value: 0
“resource-type”
property “resource-type” GType *
The resource type to query for.
Flags: Read / Write
Allowed values: GomResource