diff --git a/README.md b/README.md index 9237d7da1..68ebee3b5 100644 --- a/README.md +++ b/README.md @@ -1045,9 +1045,8 @@ row.value(atIndex: 0) as Grape? // fatal error: could not convert "syrah" to Gr row.value(atIndex: 0) as Grape // fatal error: could not convert "syrah" to Grape. let dbv = row.databaseValue(atIndex: 0) -dbv.value() as String // "syrah" -dbv.value() as Grape? // fatal error: could not convert "syrah" to Grape. -Grape.fromDatabaseValue(dbv) // nil +String.fromDatabaseValue(dbv) // "Syrah" +Grape.fromDatabaseValue(dbv) // nil ``` diff --git a/TODO.md b/TODO.md index f9087a35b..788280497 100644 --- a/TODO.md +++ b/TODO.md @@ -8,6 +8,7 @@ - [ ] @hdlj: Extensibility of the Query Interface - [ ] @hdlj: FetchedRecordsController throttling - [ ] @hdlj: Check RAM pressure +- [ ] DatabasePool: attempt to read from the database in DatabasePool.init(). Don't crash, but throw eventual error instead. (Related issue: https://github.com/groue/GRDB.swift/issues/99) - [ ] Test Row(SQLColumn) - [ ] Persistable partial update: allow models whose persistentDictionary only contains a subset of table columns (and count of default value) - [ ] What is the behavior inTransaction and inSavepoint behaviors in case of commit error? Code looks like we do not rollback, leaving the app in a weird state (out of Swift transaction block with a SQLite transaction that may still be opened).