datasources 0.1.5

Async datasource interfaces, middleware, registry, and test doubles
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::statement_text_renderer::StatementTextRenderer;
use std::sync::LazyLock;

pub struct DefaultStatementTextRenderer;

impl DefaultStatementTextRenderer {
    pub fn instance() -> &'static StatementTextRenderer {
        static INSTANCE: LazyLock<StatementTextRenderer> =
            LazyLock::new(|| StatementTextRenderer::new(None, None));
        &INSTANCE
    }
}