mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
4.7 KiB
4.7 KiB
- Try TableMappingType.deleteAll(db)
- Remove DatabaseWriter.writeForIssue117 when https://bugs.swift.org/browse/SR-2623 is fixed (remove
writeForIssue117, usewriteinstead, and build in Release configuration) - Restore SQLCipher
- Restore dispatching tests in GRDBOSXTests (they are disabled in order to avoid linker errors)
- DatabasePoolReleaseMemoryTests
- DatabasePoolSchemaCacheTests
- DatabaseQueueReleaseMemoryTests
- DatabasePoolBackupTests
- DatabasePoolConcurrencyTests
- DatabasePoolReadOnlyTests
- DatabaseQueueConcurrencyTests
- Read about GCD Queue creation options, particularly .autoreleaseWorkItem
- Fatal Error when MutablePersistable.update(_:columns:) is given columns that do not exist in the database.
- @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.value(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).
- GRDBCipher: remove limitations on iOS or OS X versions
- FetchedRecordsController: take inspiration from https://github.com/jflinter/Dwifft
- File protection: Read https://github.com/ccgus/fmdb/issues/262 and understand https://lists.apple.com/archives/cocoa-dev/2012/Aug/msg00527.html
- Support for resource values (see https://developer.apple.com/library/ios/qa/qa1719/_index.html)
- DOC: Since commit
e6010e334a, one can not use the raw SQLite API without importing the SQLite module for the platform. We need to document that. - Query builder
- SELECT readers., books. FROM ... JOIN ...
- date functions
- NOW
- RANDOM() https://www.sqlite.org/lang_corefunc.html
- LIKE https://www.sqlite.org/lang_expr.html
- GLOB https://www.sqlite.org/lang_expr.html
- MATCH https://www.sqlite.org/lang_expr.html
- REGEXP https://www.sqlite.org/lang_expr.html
- CASE x WHEN w1 THEN r1 WHEN w2 THEN r2 ELSE r3 END https://www.sqlite.org/lang_expr.html
- In-memory DatabasePool (https://www.sqlite.org/inmemorydb.html). Unfortunately, a shared cache is not enough. Since SQLite does not provide WAL mode for in-memory databases, it's easy to get "database is locked" errors. A WAL database on a RAM disk looks out of reach. Possible solution: have one writer that is exclusive with the readers.
Not sure
- Have Row adopt LiteralDictionaryConvertible
- ... allowing non unique column names
- Remove DatabaseValue.value()
- Don't talk about DatabaseValue.value() in README.md
- Move Database Events filtering to the TransactionObserverType protocol
- Support for NSColor/UIColor. Beware UIColor components can go beyond [0, 1.0] in iOS10.
Require changes in the Swift language:
- Specific and optimized Optional.fetch... methods when http://openradar.appspot.com/22852669 is fixed.
Requires recompilation of SQLite:
- https://www.sqlite.org/c3ref/column_database_name.html could help extracting out of a row a subrow only made of columns that come from a specific table. Requires SQLITE_ENABLE_COLUMN_METADATA which is not set on the sqlite3 lib that ships with OSX.
Reading list:
- VACUUM (https://blogs.gnome.org/jnelson/)
- Full text search (https://www.sqlite.org/fts3.html. Related: https://blogs.gnome.org/jnelson/)
- https://www.sqlite.org/undoredo.html
- http://www.sqlite.org/intern-v-extern-blob.html
- List of documentation keywords: https://swift.org/documentation/api-design-guidelines.html#special-instructions
- https://www.zetetic.net/sqlcipher/
- https://sqlite.org/sharedcache.html
- Amazing tip from Xcode labs: add a EXCLUDED_SOURCE_FILE_NAMES build setting to conditionally exclude sources for different configuration: https://twitter.com/zats/status/74386298602026496
- SQLITE_ENABLE_SQLLOG: http://mjtsai.com/blog/2016/07/19/sqlite_enable_sqllog/
- Writing High-Performance Swift Code
- http://docs.diesel.rs/diesel/associations/index.html
- http://cocoamine.net/blog/2015/09/07/contentless-fts4-for-large-immutable-documents/
- https://discuss.zetetic.net/t/important-advisory-sqlcipher-with-xcode-8-and-ios-10/1688