Demo app README

This commit is contained in:
Gwendal Roué committed 2018-09-22 14:57:22 +02:00
1 parent 9a8b60a8a7
commit cb16bf549f
1 file changed
+12 -3
+12 -3
View File
@@ -9,12 +9,21 @@ Files of interest are:
- [AppDelegate.swift](GRDBDemoiOS/AppDelegate.swift)
`AppDelegate` initializes, on application startup, a unique instance of [DatabaseQueue](../../README.md#database-queues) available for the whole application.
`AppDelegate` creates, on application startup, a unique instance of [DatabaseQueue](../../README.md#database-queues) available for the whole application.
- [AppDatabase.swift](GRDBDemoiOS/AppDatabase.swift)
`AppDatabase` is responsible for the format of the application database. It uses [DatabaseMigrator](../../README.md#migrations) in order to setup the database schema.
`AppDatabase` is responsible for the format of the database. It uses [DatabaseMigrator](../../README.md#migrations) in order to setup the database schema.
- [Player.swift](GRDBDemoiOS/Player.swift)
`Player` is a [Record](../../README.md#records) type, able to read and write in the database. It conforms to the standard Codable protocol in order to gain all advantages of [Codable Records](../../README.md#codable-records).
`Player` is a [Record](../../README.md#records) type, able to read and write in the database. It conforms to the standard Codable protocol in order to gain all advantages of [Codable Records](../../README.md#codable-records).
- [PlayersViewController.swift](GRDBDemoiOS/PlayersViewController.swift)
`PlayersViewController` displays a list of players, and animates a table view with [FetchedRecordsController](../../README.md#fetchedrecordscontroller)
- [PlayerEditionViewController.swift](GRDBDemoiOS/PlayerEditionViewController.swift)
`PlayerEditionViewController` can create or edit a player, and save it in the database.