mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Metal TODO
This commit is contained in:
1 parent
b1c48572e5
commit
d684d5cb06
1 file changed
+5
@@ -4,3 +4,8 @@
|
||||
- [ ] Since Records' primary key are infered, no operation is possible on the primary key unless we have a Database instance. It's impossible to define the record.primaryKey property, or to provide a copy() function that does not clone the primary key: they miss the database that is the only object aware of the primary key. Should we change our mind, and have Record explicitly expose their primary key again?
|
||||
- [ ] See if we can avoid the inelegant `dbQueue.inTransaction(.Deferred) { ...; return .Commit }` that is required for isolation of select queries, without introducing any ambiguity.
|
||||
- [ ] Use unsafeAddressOf instead of unsafeBitCast when possible.
|
||||
- [ ] Metal: review all fetch() methods, and make sure they are safe. Provide metalSafe() variant if needed.
|
||||
- [ ] Metal: blob of metal row should not copy data.
|
||||
- [ ] Metal: How does the code look like when one iterates metal row and extracts NSData without copy?
|
||||
- [ ] Metal: RowConvertible/Record should be able to opt-in for metal.
|
||||
- [ ] Metal: Row.copy() returns a safe row. Record that opt-in for metal should store such a copy in their referenceRow.
|
||||
Reference in new issue
Block a user