Need API to delete documents from QML
Bug #1243395 reported by
Rick Spencer
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
U1DB Qt/ QML |
Fix Released
|
High
|
Cris Dywan | ||
u1db-qt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
calls to delete_doc produce the following error:
TypeError: Object U1db::Database(
Related branches
lp:~kalikiana/u1db-qt/removeDoc
- PS Jenkins bot: Approve (continuous-integration)
- Benjamin Zeller: Approve
-
Diff: 43 lines (+11/-1)3 files modifiedsrc/database.cpp (+9/-0)
src/database.h (+1/-0)
tests/tst_query.qml (+1/-1)
Changed in u1db-qt: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
No surprise here because there's no such function. The accepted way of doing this is:
database.putDoc("", docId)
That said, I would be open to (a patch) adding a function for it to reduce confusion among those who feel more confident with a specific remove() function.