I'm from rusqlite/rusqlite#1813.
I have used an extension in SQLCipher that includes an FTS5 tokenizer. It executes SELECT fts5(?1) during the initialization process.
However, if the extension is loaded by sqlite3_auto_extension, I cannot set the key before executing SELECT fts5(?1), which will result in the error automatic extension loading failed: file is not a database.