From 87865cbed2eef80b6475fd5a2901aa46551e5c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 29 Sep 2015 05:39:28 +0200 Subject: [PATCH] README.md --- README.md | 4 +++- TODO.md | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4a74d8c6d..bd1ee30b2 100644 --- a/README.md +++ b/README.md @@ -1075,10 +1075,12 @@ let person = Person(name: "Arthur") person.save(db) ``` -**Record is not a smart class.** It is no replacement for Core Data, or for an Active Record pattern. It does not provide any uniquing. It has no knowledge of your database schema, no notion of external references and table relationships, and will not generate JOIN queries for you. +**Record is not a smart class.** It is no replacement for Core Data's NSManagedObject, or for an Active Record pattern. It does not provide any uniquing. It has no knowledge of your database schema, no notion of external references and table relationships, and will not generate JOIN queries for you. Yet, it does a few things well: +- **Records can be used from any thread**. Not being a replacement for NSManagedObject comes with advantages. + - **It eats any SQL query.** A Record subclass is often tied to a database table, but this is not a requirement at all. ```swift diff --git a/TODO.md b/TODO.md index 97ccf78d4..e14d967f3 100644 --- a/TODO.md +++ b/TODO.md @@ -1,7 +1,6 @@ - [ ] #2: this commit may be how stephencelis fixed it: https://github.com/stephencelis/SQLite.swift/commit/8f64e357c3a6668c5f011c91ba33be3e8d4b88d0 - [ ] Use @warn_unused_result where applicable - [ ] Support for NSURL -- [ ] Tell that Record can be used in any thread. - [ ] TransactionObserverType - [X] Since databaseDidCommit() and databaseDidRollback() can touch the database, we need to provide the database instance. - [X] databaseShouldCommit() should be renamed databaseWillCommit(), and throws. The error should obviously pop up.