Skip to main content

load_codex_providers

Function load_codex_providers 

Source
pub fn load_codex_providers(
    database_path: &Path,
) -> Result<Vec<CodexProvider>, ProviderError>
Expand description

Load all Codex providers from a local configuration database.

§Arguments

  • database_path - Path to the SQLite database containing a providers table.

§Returns

A vector of Codex provider configurations, preserving database row order.

§Errors

Returns ProviderError::Database when the database cannot be opened or queried. Returns ProviderError::SettingsJson when a Codex provider has invalid settings JSON.