Does backgroundTellDatabaseNamed automatically use a transaction?
24 views
Skip to first unread message
Brendan Duddridge
unread,
Apr 1, 2016, 8:43:18 PM4/1/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Couchbase Mobile
Hi,
When I call CBLManager's backgroundTellDatabaseNamed, does that automatically wrap any database operations within the block into a transaction? Or do I still need to call [database inTransaction:] to get a transaction?
Thanks,
Brendan
Jens Alfke
unread,
Apr 5, 2016, 1:42:01 PM4/5/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mobile-c...@googlegroups.com
On Apr 1, 2016, at 5:43 PM, Brendan Duddridge <bren...@gmail.com> wrote:
When I call CBLManager's backgroundTellDatabaseNamed, does that automatically wrap any database operations within the block into a transaction?
No. You’ll need to use your own inTransaction call if you want one.
—Jens
Brendan Duddridge
unread,
Apr 5, 2016, 1:58:22 PM4/5/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Couchbase Mobile
Yup. Figured that out, but then forgot to update this post.