oxirs-fuseki 0.2.4

SPARQL 1.1/1.2 HTTP protocol server with Fuseki-compatible configuration
Documentation
//! # Store - list_datasets_group Methods
//!
//! This module contains method implementations for `Store`.
//!
//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)

use super::*;
use std::collections::{HashMap, HashSet};

impl Store {
    /// List all dataset names
    pub fn list_datasets(&self) -> FusekiResult<Vec<String>> {
        let datasets = self
            .datasets
            .read()
            .map_err(|e| FusekiError::store(format!("Failed to acquire read lock: {e}")))?;
        Ok(datasets.keys().cloned().collect())
    }
}