Skip to main content

spawn_sql_shim

Function spawn_sql_shim 

Source
pub async fn spawn_sql_shim(
    sql: Option<Arc<dyn SqlBackends>>,
    shim_url: Option<String>,
) -> Option<Arc<dyn ComputeBindingResolver>>
Expand description

Activate the compute sql-shim: bind its listener and build the resolver to hand the compute reconcile. shim_url is the guest-reachable base URL (e.g. http://10.0.0.1:8081, or the docker bridge gateway); the shim binds 0.0.0.0:<port-from-url>. Returns None — the feature stays off — when there is no sql provider, no shim_url, or the bind fails.