sqlload-python-host 0.87.0

The Python host of SQLLoad's engine: runs Python tables and crosses what they yield into the engine, for a pyo3 extension of your own.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! A host whose Python side is a module of the host's own.

use std::sync::Arc;

use sqlload::python_sources::types::PythonHost;

use crate::host::models::ModuleHost;

/// A [`PythonHost`] that calls `runtime`, a Python module the host provides (see [`ModuleHost`] for what it defines), and `sqlload_api._host` for transforms.
pub fn module_host(runtime: &str) -> Arc<dyn PythonHost> {
    Arc::new(ModuleHost {
        runtime: runtime.to_owned(),
    })
}