Skip to main content

ensure_library

Function ensure_library 

Source
pub async fn ensure_library(client: &Client) -> Result<(), LoadError>
Expand description

Ensure the flowfabric function library is loaded on the server and at the expected version.

  1. FCALL ff_version 0 — check if library is loaded and version matches
  2. If missing or version mismatch → FUNCTION LOAD REPLACE (with retry)
  3. Verify by calling ff_version again