pub struct Update { /* private fields */ }
Expand description
A parsed SPARQL update.
use oxigraph::sparql::Update;
let update_str = "CLEAR ALL ;";
let update = Update::parse(update_str, None)?;
assert_eq!(update.to_string().trim(), update_str);
Implementations§
Source§impl Update
impl Update
Sourcepub fn parse(
update: &str,
base_iri: Option<&str>,
) -> Result<Self, SparqlSyntaxError>
pub fn parse( update: &str, base_iri: Option<&str>, ) -> Result<Self, SparqlSyntaxError>
Parses a SPARQL update with an optional base IRI to resolve relative IRIs in the query.
Sourcepub fn using_datasets(&self) -> impl Iterator<Item = &QueryDataset>
pub fn using_datasets(&self) -> impl Iterator<Item = &QueryDataset>
Sourcepub fn using_datasets_mut(&mut self) -> impl Iterator<Item = &mut QueryDataset>
pub fn using_datasets_mut(&mut self) -> impl Iterator<Item = &mut QueryDataset>
Trait Implementations§
impl Eq for Update
impl StructuralPartialEq for Update
Auto Trait Implementations§
impl Freeze for Update
impl RefUnwindSafe for Update
impl Send for Update
impl Sync for Update
impl Unpin for Update
impl UnwindSafe for Update
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more