mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
New suggested contribution: "Records: Splitting Database Encoding from Ability to Write in the Database"
This commit is contained in:
1 parent
1426c7fd38
commit
86cff20f99
1 file changed
+19
@@ -87,6 +87,7 @@ The ideas, in alphabetical order:
|
||||
- [JSON]
|
||||
- [Linux]
|
||||
- [More SQL Generation]
|
||||
- [Records: Splitting Database Encoding from Ability to Write in the Database]
|
||||
- [SQL Console in the Debugger]
|
||||
- [SQLCipher in a Shared App Container]
|
||||
- [Static Library]
|
||||
@@ -321,6 +322,19 @@ There are several SQLite features that GRDB could natively support:
|
||||
- [More ideas](https://www.sqlite.org/lang.html)
|
||||
|
||||
|
||||
### Records: Splitting Database Encoding from Ability to Write in the Database
|
||||
|
||||
:baby: Starter Task :pencil: Documentation
|
||||
|
||||
Record types that know how to encode themselves in the database (converting themselves into columns and database values) currently are granted with [persistence methods] which can write in the database. Those record types all adopt the [PersistableRecord] protocol.
|
||||
|
||||
But encoding a record grants other features, such as [Record Comparison], or [Requesting Associated Records].
|
||||
|
||||
This is a problem: one should not have to grant a type with persistence methods, when one just needs read-only features.
|
||||
|
||||
The fix is to split database encoding from persistence methods. See [#426](https://github.com/groue/GRDB.swift/issues/426) for more information.
|
||||
|
||||
|
||||
### SQL Console in the Debugger
|
||||
|
||||
:question: Unknown Difficulty :hammer: Tooling
|
||||
@@ -396,6 +410,7 @@ Features that blur this focus are non-goals:
|
||||
[JSON]: #json
|
||||
[Linux]: #linux
|
||||
[More SQL Generation]: #more-sql-generation
|
||||
[Records: Splitting Database Encoding from Ability to Write in the Database]: #records-splitting-database-encoding-from-ability-to-write-in-the-database
|
||||
[Non-Goals]: #non-goals
|
||||
[Report Bugs]: #report-bugs
|
||||
[RxGRDB]: http://github.com/RxSwiftCommunity/RxGRDB
|
||||
@@ -408,3 +423,7 @@ Features that blur this focus are non-goals:
|
||||
[Suggest an Enhancement]: #suggest-an-enhancement
|
||||
[Suggested Contributions]: #suggested-contributions
|
||||
[Typed Expressions]: #typed-expressions
|
||||
[persistence methods]: README.md#persistence-methods
|
||||
[PersistableRecord]: README.md#persistablerecord-protocol
|
||||
[Record Comparison]: README.md#record-comparison
|
||||
[Requesting Associated Records]: Documentation/AssociationsBasics.md#requesting-associated-records
|
||||
Reference in new issue
Block a user