dflourusso / expo-sqlite-orm

Expo SQLite ORM
132 stars 34 forks source link

How to run WHERE with OR #43

Open adarshkhatri opened 3 years ago

adarshkhatri commented 3 years ago

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?

dflourusso commented 3 years ago

You can exec a sql manually for while.

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