I have got the below Postgres Query:
db.queryAsync('SELECT _id, value FROM ' + store + ' WHERE (value->>$1)=$2;', [index, id]);
I want to write the same in SQLite. I have created the value field as TEXT type, but then not sure how to query. I am using SQLite and JavaScript running on Duktape.