Top | ![]() |
![]() |
![]() |
![]() |
This object provides access to the Appstream Xapian database of available software components. You can search for components using various criteria, as well as getting some information about the data provided by this Appstream database.
See also: AsComponent, AsSearchQuery
AsDatabase *
as_database_construct (GType object_type
);
Construct a new AsDatabase.
void as_database_set_database_path (AsDatabase *self
,const gchar *value
);
GPtrArray *
as_database_get_all_components (AsDatabase *self
);
Dump a list of all components found in the database.
GPtrArray * as_database_find_components (AsDatabase *self
,AsSearchQuery *query
);
Find components in the Appstream database.
an array of AsComponent objects which have been found.
[element-type AsComponent][transfer full]
GPtrArray * as_database_find_components_by_term (AsDatabase *self
,const gchar *search_term
,const gchar *categories_str
);
Find components in the Appstream database by searching for a simple string.
self |
a valid AsDatabase instance |
|
search_term |
the string to search for |
|
categories_str |
a comma-separated list of category names, or NULL to search in all categories. |
[allow-none][default NULL] |
an array of AsComponent objects which have been found.
[element-type AsComponent][transfer full]
AsComponent * as_database_get_component_by_id (AsDatabase *self
,const gchar *idname
);
Get a component by it's ID
GPtrArray * as_database_get_components_by_provides (AsDatabase *self
,AsProvidesKind kind
,const gchar *value
,const gchar *data
);
Find components in the Appstream database.
an array of AsComponent objects which have been found, NULL on error.
[element-type AsComponent][transfer full]
GPtrArray * as_database_get_components_by_kind (AsDatabase *self
,AsComponentKind kinds
);
Find components of a given kind.
an array of AsComponent objects which have been found, NULL on error.
[element-type AsComponent][transfer full]
“database-path”
property“database-path” gchar *
database-path.
Flags: Read / Write
Default value: NULL