Skip to main content

load_codex_providers_from_connection

Function load_codex_providers_from_connection 

Source
pub fn load_codex_providers_from_connection(
    connection: &Connection,
) -> Result<Vec<CodexProvider>, ProviderError>
Expand description

Load all Codex providers from an existing SQLite connection.

§Arguments

  • connection - Open SQLite connection containing a providers table.

§Returns

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

§Errors

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