Simple examples in Swift

47 views
Skip to first unread message

Karel-Jan Van Haute

unread,
Oct 10, 2014, 9:20:35 AM10/10/14
to mobile-c...@googlegroups.com
Hey 

I'm new to couchbase and swift in ios. 

Can someone provide me with some basic examples in swift on how to use couchbase? 
I want to have a couchbase with basic authentication. (This part works)
But I want to use the lookup pattern. The couchbase youtube video's state that you can do "add("u::user", data) and "add("m...@email.com", "u::user") and then do a two step retrieval.

I want to setup something like that. But I'm totaly lost.

So if someone can point me in the right direction or provide some simple working examples. 

Thank you
Karel-Jan

Jens Alfke

unread,
Oct 10, 2014, 12:23:41 PM10/10/14
to mobile-c...@googlegroups.com

On Oct 10, 2014, at 6:20 AM, Karel-Jan Van Haute <kare...@gmail.com> wrote:

But I want to use the lookup pattern. The couchbase youtube video's state that you can do "add("u::user", data) and "add("m...@email.com", "u::user") and then do a two step retrieval.

I don't know what that means … I think you were probably looking at information about the Couchbase Server APIs, which are not at all the same as Couchbase Lite.

Try starting with the Couchbase Lite documentation. And if you're also new to Swift, I'd suggest putting that part off until later and learning Couchbase Lite in regular Objective-C first.

—Jens
Reply all
Reply to author
Forward
0 new messages