//! Registration helper for the sqlite-vec extension.
//!
//! Centralises the `unsafe transmute` so every callsite gets the same
//! typed signature (clippy demands an explicit type annotation on raw
//! transmutes; doing it once here is cleaner than four-way copy-paste).
use ffi;
/// Pointer signature SQLite expects for an extension init function.
type SqliteExtensionInit = unsafe extern "C" fn ;
/// Register sqlite-vec as an auto-extension. Every subsequent
/// `Connection::open*` picks it up, gaining access to the `vec0` virtual
/// table.
///
/// Calling this multiple times is safe — SQLite dedupes by function
/// pointer. The provider calls it on every `open` so callers don't have
/// to remember.