Method
TrackerSparqlConnectionquery_statement
Declaration [src]
TrackerSparqlStatement*
tracker_sparql_connection_query_statement (
TrackerSparqlConnection* connection,
const gchar* sparql,
GCancellable* cancellable,
GError** error
)
Description [src]
Prepares the given SELECT/ASK/DESCRIBE/CONSTRUCT SPARQL query as a
TrackerSparqlStatement.
This prepared statement can be executed through tracker_sparql_statement_execute()
or tracker_sparql_statement_serialize_async() families of functions.
Parameters
sparql |
const gchar* |
The SPARQL query. |
|
| The data is owned by the caller of the function. | |
| The string is a NUL terminated UTF-8 string. | |
cancellable |
GCancellable* |
Optional |
|
The argument can be NULL. | |
| The data is owned by the caller of the function. | |
error |
GError ** |
The return location for a GError*, or NULL. |
Return value
| Returns: | TrackerSparqlStatement |
A prepared statement. |
|
| The caller of the method takes ownership of the data, and is responsible for freeing it. | |
The return value can be NULL. |