CouchbaseLiteSwift

29 views
Skip to first unread message

goo...@marco.betschart.name

unread,
Feb 11, 2016, 7:13:08 PM2/11/16
to Couchbase Mobile
Hey Folks!

I've created a first version of a CouchbaseLite Swift wrapper library,
because I felt like working with Couchbase Lite could be easier and more integrated.

That's why I've kept an eye on Swifts built in CollectionTypes,
to enable easy looping - with direct support of CBLModel!

As upon now, it makes Database and Model handling easier as well as Quering:

for user in Query<User>()
  .with("givenName != ''")
  .or("familyName != ''")
  .and(["age < 18","age > 50"], logic: .OR)
  .orderBy("familyName", sort: .DESC){

  print("\(user.givenName) \(user.familyName)")
}

It would be cool to push this even further - any suggestions are welcome!
Feel free to open issues and/or add pull requests at the projects home base:

Reply all
Reply to author
Forward
0 new messages