|
@@ -180,61 +180,6 @@ bool
|
|
|
LSUP_graph_contains (const LSUP_Graph *gr, const LSUP_Triple *spo);
|
|
|
|
|
|
|
|
|
-/** @brief Begin a transaction.
|
|
|
- *
|
|
|
- * If the underlying store supports it, begin a transaction.
|
|
|
- *
|
|
|
- * Note that the transaction affects all graphs sharing the same store, and it
|
|
|
- * may be closed using a different graph as long as this is backed by the same
|
|
|
- * store. Only one transaction may be opened at a time for the store.
|
|
|
- *
|
|
|
- * The transaction must be either committed with #LSUP_graph_commit() or
|
|
|
- * rolled back with #LSUP_graph_abort().
|
|
|
- *
|
|
|
- * TODO Deprecate in favor of direct access to the store handle.
|
|
|
- *
|
|
|
- * @param[in] gr Graph handle.
|
|
|
- *
|
|
|
- * @param[in] flags Unused for now, use 0. TODO
|
|
|
- *
|
|
|
- * @param[out] txn Address to be populated with the new transaction handle.
|
|
|
- *
|
|
|
- * @return LSUP_OK on success; LSUP_VALUE_ERR if the graph store does not
|
|
|
- * support transactions; LSUP_TXN_ERR if the store has already an uncommitted
|
|
|
- * transaction; <0 on other errors from the underlying store.
|
|
|
- */
|
|
|
-LSUP_rc
|
|
|
-LSUP_graph_begin (LSUP_Graph *gr, int flags, void **txn);
|
|
|
-
|
|
|
-
|
|
|
-/** @brief Commit a transaction.
|
|
|
- *
|
|
|
- * If the underlying store supports it, commit an open transaction. In case of
|
|
|
- * error, the transaction is left open and it is advisable to roll it back with
|
|
|
- * #LSUP_graph_abort().
|
|
|
- *
|
|
|
- * TODO Deprecate in favor of direct access to the store handle.
|
|
|
- *
|
|
|
- * @param[in] gr Graph handle.
|
|
|
- *
|
|
|
- * @return LSUP_OK if the transaction was committed successfully; LSUP_NOACTION
|
|
|
- * if NULL was passed; LSUP_TXN_ERR on error.
|
|
|
- */
|
|
|
-LSUP_rc LSUP_graph_commit (LSUP_Graph *gr, void *txn);
|
|
|
-
|
|
|
-
|
|
|
-/** @brief Abort (roll back) a transaction.
|
|
|
- *
|
|
|
- * If the underlying store supports it, abort an open transaction and abandon
|
|
|
- * all changes.
|
|
|
- *
|
|
|
- * TODO Deprecate in favor of direct access to the store handle.
|
|
|
- *
|
|
|
- * @param[in] gr Graph handle.
|
|
|
- */
|
|
|
-void LSUP_graph_abort (LSUP_Graph *gr, void *txn);
|
|
|
-
|
|
|
-
|
|
|
/** @brief Initialize an iterator to add triples.
|
|
|
*
|
|
|
* @param[in] txn Transaction handle. It may be NULL. If not NULL, its handle
|