.NET

ANN: Couchbase Lite 개발자 빌드 003 (Obj C, Swift, .NET)

I am very pleased that Couchbase Lite Developer Build 003 is now available for 다운로드 for Objective C, Swift and “.NET”.

Database queries have changed significantly in this release. Couchbase Lite 2.0 uses semantics based on N1QL query language defined by Couchbase. This API will be familiar If you’ve used Core Data, or other query APIs based on SQL (like jOOQ).

The Query API will have two styles – builder and fluent, and the implementation chosen would depend on the development platform.

Objective C

For Objective-C, we’ve implemented a builder API.

The SQL Statement

‘SELECT * FROM type=’account’ AND owner=’John’ ORDER BY dealSize’

can be written with the builder API as follows:

CBLQuery *query =

[CBLQuery 선택: [CBLQuerySelect 모두]

            from: [CBLQueryDataSource database: database]

          where: [[CBLQueryExpression property: @”type”] equalTo: @”account”] and:

                  [CBLQueryExpression property: @”owner”] equalTo: @”Wayne”]]

         orderBy: [CBLQueryOrderBy expression: [CBLQueryExpression property: @”dealSize”]]

];

The API Specification for Objective C is available 여기 and the release notes are 여기.

스위프트

We’ve implemented a fluent API with support for the following

  • CRUD operations
  • Document with property type accessors
  • Subdocument API
  • Blob data type
  • CouchbaseLiteSwift framework for the Swift API
  • Database and Document Change Notification

The API Specification for Swift is available 여기 and the release notes are 여기.

.NET

The major changes in .NET are as follows –

  • We’ve added the sub document API which allows you to access embedded JSON objects. This is a much cleaner and safer approach with type safe accessors and the thread safety rules.
  • Thread safety checking is optional now. When used, it will be rigorously enforced and fail quickly to indicate incorrect usage.
  • Plus, you get everything that was available in DB002 which is listed here. The key highlights being:
    • A new and simplified API to interact with Couchbase Lite. CRUD operations are available and each subsequent build will have API expansion and changes. More details are available 여기.
    • Blob data type support.
    • Database and Document Change Notifications.

We are working hard on creating samples for you but in the meanwhile you can check out the unit tests 여기 to get started.

The API specification is available 여기 and the release notes are available 여기.

이 기사 공유하기

작가

사친 스모트라(Sachin Smotra)의 경력은 15년이 넘으며 자바 엔터프라이즈 소프트웨어, 모바일 게임 및 웹 컨퍼런스를 위한 DRM 솔루션을 포함한 다양한 분야에서 소프트웨어 제품을 구축해 왔습니다. 카우치베이스(Couchbase)의 제품 관리 이사인 그는 고객, 파트너, 개발자 및 애널리스트에게 제품 전략과 비전을 전파하는 것을 포함하여 카우치베이스 모바일, IOT 및 분석 제품군을 담당하는 실무형 제품 리더입니다. 카우치베이스에 합류하기 전, 사친은 시스코 웹엑스(Cisco WebEx)에서 제품 관리 시니어 매니저로 재직하며 고려, 구매, 사용, 갱신에 이르기 라이프사이클 전반에 걸쳐 엔드투엔드 고객 경험을 혁신하는 제품 팀을 이끌었습니다. 시스코 이전에는 엔지니어링, 아키텍처, 제품 관리 및 제휴 등 다양한 스타트업에서 여러 역할을 수행했습니다.

댓글 남기기

카우치베이스 카펠라를 시작할 준비가 되셨나요?

개발 시작하기

NoSQL을 탐색하고, 리소스를 찾아보고, 튜토리얼을 시작하려면 개발자 포털을 확인하세요.

카펠라 프리 사용하기

단 몇 번의 클릭으로 카우치베이스(Couchbase)를 직접 체험해 보세요. Capella DBaaS는 시작하기 가장 쉽고 빠른 방법입니다.

연락해

Couchbase 제품군에 대해 더 알고 싶으신가요? 저희가 도와드리겠습니다.