티스토리 뷰

🍏/iOS

[Local DB] CoreData 도움되는 링크 모음

사용자 eungding 2020. 2. 5. 21:33
728x90
반응형

iOS에서 로컬데이터베이스를 쓸 때 보통 SQLite, CoreData, Realm 을 사용합니다. 

이중에서 CoreData는 애플이 제공하는 것이고 SQLite와 Realm은 써드파티 라이브러리 입니다.

 

SQLite는 sql문을 써야하는 반면, CoreData와 Realm는 sql문을 안써도 됩니다. 

CoreData와 Realm은 데이터를 Object로 다루기 때문에 더 편하고 간단하게 느껴집니다. 

 

(하지만 2020년에 올라온 SQLite 좋다는 글. 아직 안읽어봄.) 

https://www.raywenderlich.com/6620276-sqlite-with-swift-tutorial-getting-started 

 

SQLite With Swift Tutorial: Getting Started

In this SQLite with Swift tutorial, you’ll learn to use a SQLite database with Swift projects by creating tables and inserting, updating and deleting rows.

www.raywenderlich.com

 

저는 Realm만 써봤는데, CoreData를 처음 사용해보고 있습니다

좋은 블로그 링크 모아두기!!! (감사합니당)

 

개념 

https://www.raywenderlich.com/7569-getting-started-with-core-data-tutorial

 

Getting Started with Core Data Tutorial

Learn the basics of building the data layer of your iOS app in this getting started with Core Data tutorial!

www.raywenderlich.com

 

CRUD 

https://medium.com/@ankurvekariya/core-data-crud-with-swift-4-2-for-beginners-40efe4e7d1cc

 

Core Data (CRUD) with Swift 4.2 for Beginners

Core Data is an object graph and persistence framework provided by Apple in the macOS and iOS operating systems. It was introduced in Mac…

medium.com

 

 

CoreData를 Unit Test에서 사용할때 테스트 환경만들기

https://medium.com/flawless-app-stories/cracking-the-tests-for-core-data-15ef893a3fee

 

Cracking the Tests for Core Data

With an introduction of NSPersistentContainer in iOS 10, it becomes easier to use Core Data. Let’s learn how to write unit tests for Core Data!

medium.com


⭐️  그림 최고 ⭐️ 

https://medium.com/rekerrsive/flexible-and-easy-unit-testing-of-coredata-persistence-code-2b2cf456cfae

 

Flexible and Easy Unit Testing of CoreData Persistence Code

Modern and high-quality iOS applications are expected to perform flawlessly. An important input to ensuring flawless, regression-resistant…

medium.com

 

728x90
반응형
댓글
댓글쓰기 폼