expo-sqlite-wrapper
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "expo-sqlite-wrapper", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "This is a wrapper for `expo-sqlite` as it make it very easy to create, update and work with the database file", | ||
@@ -5,0 +5,0 @@ "main": "index.tsx", |
@@ -112,6 +112,9 @@ # expo-sqlite-wrapper | ||
// You could also load the children when using query | ||
// this will be converted to [Select * from Parents where (name in (?,?)) OR (email = ?)] WHERE ? is the arguments. | ||
// this will be converted to [Select * from Parents where (name in (?,?)) OR (email like %?%)] WHERE ? is the arguments. | ||
// Also make note that if arguments in IN() is empty or undefined the select Sats will remove the select for the column Name | ||
// and the select will be [Select * from Parents where (email like %?%)] the same for EqualTo etc.. | ||
var item = await dbContext.database.query<Parent>("Parents").Start().Column(x=> x.name).IN(["name", "testName"]).End().OR() | ||
var item = await dbContext.database.query<Parent>("Parents") | ||
.Start().Column(x=> x.name).IN(["name", "testName"]).End() | ||
.OR() | ||
.Start().Column(x=> x.email).Contains("test@").End() | ||
@@ -118,0 +121,0 @@ .LoadChildren("Childrens", x=> x.id) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47008
850
211