Trait ligature::WriteTx [−][src]
Represents a WriteTx within the context of a Ligature instance and a single Dataset
Required methods
fn new_entity(&self) -> Result<Entity, LigatureError>
[src]
Creates a new, unique Entity within this Dataset. Note: Entitys are shared across named graphs in a given Dataset.
fn add_statement(
&self,
statement: &Statement
) -> Result<PersistedStatement, LigatureError>
[src]
&self,
statement: &Statement
) -> Result<PersistedStatement, LigatureError>
Adds a given Statement to this Dataset. If the Statement already exists nothing happens (TODO maybe add it with a new context?). Note: Potentally could trigger a ValidationError
fn remove_statement(
&self,
persisted_statement: &PersistedStatement
) -> Result<bool, LigatureError>
[src]
&self,
persisted_statement: &PersistedStatement
) -> Result<bool, LigatureError>
Removes a given PersistedStatement from this Dataset. If the PersistedStatement doesn't exist nothing happens and returns Ok(false). This function returns Ok(true) only if the given PersistedStatement was found and removed. Note: Potentally could trigger a ValidationError.
fn cancel(&self) -> Result<(), LigatureError>
[src]
Cancels this transaction so that none of the changes made so far will be stored. This also closes this transaction so no other methods can be called without returning a LigatureError.