How replace getCurrentInstance and app.?

Hi,

i created my app with plugin capacitor-community/sqlite because i need have a database

someone how replace the next code:

const app = getCurrentInstance()

const sqlite: SQLiteHook = app?.appContext.config.globalProperties.$sqlite;

in android app.? crash de app and getCurrentInstance is not recomendated in vue3

i resolve this issus using provide and inject for get sqlite connection, but have some problem when i need used multiple connection and background process.

the base of my code is taken from