expo-sqlite-orm icon indicating copy to clipboard operation
expo-sqlite-orm copied to clipboard

How to run WHERE with OR

Open adarshkhatri opened this issue 3 years ago • 1 comments

Need to run OR WHERE condition but looks like it is not supported yet.

I need to find the records as per below:

SELECT * FROM table_name WHERE title = 'test' or field like 'test%'

Any suggestion on this?

adarshkhatri avatar Jun 10 '21 07:06 adarshkhatri

You can exec a sql manually for while.

https://github.com/dflourusso/expo-sqlite-orm#how-to-exec-a-sql-manually

dflourusso avatar Jun 10 '21 10:06 dflourusso