Skip to content

Commit 0b92c85

Browse files
committed
Upgrade demo apps
1 parent 6e2e1f4 commit 0b92c85

File tree

8 files changed

+30
-34
lines changed

8 files changed

+30
-34
lines changed

Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 11 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo/AppDatabase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ extension AppDatabase {
162162
// reading methods.
163163
extension AppDatabase {
164164
/// Provides a read-only access to the database
165-
var databaseReader: DatabaseReader {
165+
var reader: DatabaseReader {
166166
dbWriter
167167
}
168168
}

Documentation/DemoApps/GRDBAsyncDemo/GRDBAsyncDemo/PlayerRequest.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ struct PlayerRequest: Queryable {
2929

3030
func publisher(in appDatabase: AppDatabase) -> AnyPublisher<[Player], Error> {
3131
// Build the publisher from the general-purpose read-only access
32-
// granted by `appDatabase.databaseReader`.
32+
// granted by `appDatabase.reader`.
3333
// Some apps will prefer to call a dedicated method of `appDatabase`.
3434
ValueObservation
3535
.tracking(fetchValue(_:))
3636
.publisher(
37-
in: appDatabase.databaseReader,
37+
in: appDatabase.reader,
3838
// The `.immediate` scheduling feeds the view right on
3939
// subscription, and avoids an undesired animation when the
4040
// application starts.

Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 11 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/AppDatabase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ extension AppDatabase {
163163
// reading methods.
164164
extension AppDatabase {
165165
/// Provides a read-only access to the database
166-
var databaseReader: DatabaseReader {
166+
var reader: DatabaseReader {
167167
dbWriter
168168
}
169169
}

Documentation/DemoApps/GRDBCombineDemo/GRDBCombineDemo/PlayerRequest.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ struct PlayerRequest: Queryable {
2929

3030
func publisher(in appDatabase: AppDatabase) -> AnyPublisher<[Player], Error> {
3131
// Build the publisher from the general-purpose read-only access
32-
// granted by `appDatabase.databaseReader`.
32+
// granted by `appDatabase.reader`.
3333
// Some apps will prefer to call a dedicated method of `appDatabase`.
3434
ValueObservation
3535
.tracking(fetchValue(_:))
3636
.publisher(
37-
in: appDatabase.databaseReader,
37+
in: appDatabase.reader,
3838
// The `.immediate` scheduling feeds the view right on
3939
// subscription, and avoids an undesired animation when the
4040
// application starts.

Documentation/DemoApps/GRDBDemoiOS/GRDBDemoiOS/AppDatabase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ extension AppDatabase {
127127
// reading methods.
128128
extension AppDatabase {
129129
/// Provides a read-only access to the database
130-
var databaseReader: DatabaseReader {
130+
var reader: DatabaseReader {
131131
dbWriter
132132
}
133133
}

Documentation/DemoApps/GRDBDemoiOS/GRDBDemoiOS/ViewControllers/PlayerListViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class PlayerListViewController: UITableViewController {
138138
playersCancellable = ValueObservation
139139
.tracking(request.fetchAll(_:))
140140
.start(
141-
in: AppDatabase.shared.databaseReader,
141+
in: AppDatabase.shared.reader,
142142
// Immediate scheduling feeds the data source right on subscription,
143143
// and avoids an undesired animation when the application starts.
144144
scheduling: .immediate,

0 commit comments

Comments
 (0)