mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Demo Application
Files of interest are:
-
AppDelegatecreates, on application startup, a unique instance of DatabaseQueue available for the whole application. -
AppDatabaseis responsible for the format of the database. It uses DatabaseMigrator in order to setup the database schema. -
Playeris a Record 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. -
PlayersViewControllerdisplays a list of players, and animates a table view with FetchedRecordsController. -
PlayerEditionViewController.swift
PlayerEditionViewControllercan create or edit a player, and save it in the database.
