mirror of https://github.com/AMT-Cheif/drift.git
Merge pull request #980 from cervonwong/patch-7
Update writing_queries.md to fix grammar
This commit is contained in:
commit
8dffd4fe96
|
@ -119,8 +119,8 @@ Future update(Todo entry) {
|
||||||
// using replace will update all fields from the entry that are not marked as a primary key.
|
// using replace will update all fields from the entry that are not marked as a primary key.
|
||||||
// it will also make sure that only the entry with the same primary key will be updated.
|
// it will also make sure that only the entry with the same primary key will be updated.
|
||||||
// Here, this means that the row that has the same id as entry will be updated to reflect
|
// Here, this means that the row that has the same id as entry will be updated to reflect
|
||||||
// the entry's title, content and category. As it set's its where clause automatically, it
|
// the entry's title, content and category. As its where clause is set automatically, it
|
||||||
// can not be used together with where.
|
// cannot be used together with where.
|
||||||
return update(todos).replace(entry);
|
return update(todos).replace(entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue