Method
TrackerSparqlConnectionupdate_statement
Declaration [src]
TrackerSparqlStatement*
tracker_sparql_connection_update_statement (
TrackerSparqlConnection* connection,
const gchar* sparql,
GCancellable* cancellable,
GError** error
)
Description [src]
Prepares the given INSERT/DELETE SPARQL as a TrackerSparqlStatement.
This prepared statement can be executed through
the tracker_sparql_statement_update() family of functions.
| Available since: | 3.5 |
Parameters
sparql |
const gchar* |
The SPARQL update. |
|
| 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. |