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
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
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
to Couchbase Mobile
Yup. Figured that out, but then forgot to update this post.

Thanks!

Brendan
Reply all
Reply to author
Forward
0 new messages