mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
GRDBDemoiOS
This application runs an universal (iPhone + iPad) application that displays an editable list of persons.
To see usage of GRDB, check the following files:
-
AppDelegate sets up a global dbQueue that is accessible in the whole application.
It uses migrations to initialize the database.
-
MasterViewController is responsible for displaying the list of persons in a table view, deleting persons, and present a person edition form.
-
Person is a simple Record subclass.
-
DetailViewController.swift and PersonEditionViewController.swift
Those two view controllers display and edit a Person, in total isolation from the database.