im using sqlite database in my react native project i made app_db database that contain users table ,
and the path of database : /home/dina/AppointmentApp/android/app/src/main/assets/app_db
now i want to access to the users table in my project and execute some queries like select , update, insert ...etc
here is the code of open connection
var db = SQLite.openDatabase({name : "app_db", createFromLocation : "~app_db"});
db.transaction((tx)=>{
tx.executeSql("select * from users",(tx,results) => {
});
});
i dont know if this query is correct or not it is return in console
-OPEN database: app_db -{message: "no such table: users (Sqlite code 1): , while comp…m users, (OS error - 2:No such file or directory)", code: 0}