Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

315 B
Raw Blame
use rusqlite::ffi::sqlite3_auto_extension;
use sqlite_vec::sqlite3_vec_init;

pub mod db;
pub mod entities;
mod migration;

#[allow(clippy::missing_transmute_annotations)]
pub fn init_sqlite_vector_extension() {
  unsafe {
    sqlite3_auto_extension(Some(std::mem::transmute(sqlite3_vec_init as *const ())));
  }
}