pub fn load_vector_extension(
conn: &Connection,
path: Option<&Path>,
) -> Result<()>Expand description
Load the sqlite-vector extension
The extension binary should be available at the given path. Pre-built binaries can be downloaded from: https://github.com/sqliteai/sqlite-vector/releases
§Platform-specific defaults
If no path is provided, defaults to:
- Linux:
./libsqlite_vector.so - macOS:
./libsqlite_vector.dylib - Windows:
./sqlite_vector.dll
§Safety
This function uses unsafe code to load the extension. The extension must be a valid SQLite extension and should be from a trusted source.