mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
GRDBDemoiOS README
This commit is contained in:
1 parent
48eff16ac7
commit
10ac19db72
1 file changed
+5
-5
@@ -16,11 +16,11 @@ This application runs an universal (iPhone + iPad) application that displays an
|
||||
|
||||
**To see usage of GRDB, check the following files:**
|
||||
|
||||
- [AppDelegate.swift](GRDBDemoiOS/AppDelegate.swift)
|
||||
|
||||
AppDelegate sets up a global dbQueue that is accessible in the whole application.
|
||||
- [Database.swift](GRDBDemoiOS/Database.swift)
|
||||
|
||||
It uses migrations to initialize the database.
|
||||
The setupDatabase() function sets up a global dbQueue that is accessible in the whole application. It is called by the [AppDelegate](GRDBDemoiOS/AppDelegate.swift) when application starts up.
|
||||
|
||||
It uses [migrations](https://github.com/groue/GRDB.swift#migrations) to initialize the database, and [custom string comparison](https://github.com/groue/GRDB.swift#string-comparison) in order to let the database perform the localized sorting of persons by name.
|
||||
|
||||
- [MasterViewController.swift](GRDBDemoiOS/MasterViewController.swift)
|
||||
|
||||
@@ -28,7 +28,7 @@ This application runs an universal (iPhone + iPad) application that displays an
|
||||
|
||||
- [Person.swift](GRDBDemoiOS/Person.swift)
|
||||
|
||||
Person is a simple Record subclass.
|
||||
Person is a simple [Record](https://github.com/groue/GRDB.swift#records) subclass.
|
||||
|
||||
- [DetailViewController.swift](GRDBDemoiOS/DetailViewController.swift) and [PersonEditionViewController.swift](GRDBDemoiOS/PersonEditionViewController.swift)
|
||||
|
||||
|
||||
Reference in new issue
Block a user