update_array_async


Description:

public async bool update_array_async (string sparql, int sparql_length, Cancellable? cancellable = null) throws Error

Executes asynchronously an array of SPARQL updates.

All updates in the array are handled within a single transaction.

If the query is partially built from user input or other untrusted sources, special care is required about possible SPARQL injection. In order to avoid it entirely, it is recommended to use [class@SparqlStatement], or to build the SPARQL input through [class@Resource]. The function [func@sparql_escape_string] exists as a last resort, but its use is not recommended.

Parameters:

this

A `TrackerSparqlConnection`

sparql

An array of strings containing the SPARQL update queries

sparql_length

The amount of strings you pass as sparql

cancellable

Optional [type@Gio.Cancellable]

callback

User-defined [type@Gio.AsyncReadyCallback] to be called when the asynchronous operation is finished.

user_data

User-defined data to be passed to callback