README.md

This commit is contained in:
Gwendal Roué committed 2015-09-29 05:39:28 +02:00
1 parent 6a03778013
commit 87865cbed2
2 files changed
+3 -2

No files matched your search

+3 -1
View File
@@ -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
-1
View File
@@ -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.