Skip to main content

register_vec_extension

Function register_vec_extension 

Source
pub fn register_vec_extension()
Expand description

Register sqlite-vec GLOBALLY before any connection is opened.

Idempotent: subsequent calls are no-ops thanks to OnceLock. Safe to invoke from both the binary entry point (main.rs) and library helpers like ensure_db_ready so unit tests that exercise CRUD handlers do not need to pre-register the extension.