mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Precise documentation
This commit is contained in:
1 parent
f4a32edbb9
commit
d7dfb4c2ed
2 files changed
+2
-2
No files matched your search
@@ -55,7 +55,7 @@ struct AppDatabase {
|
||||
|
||||
extension AppDatabase {
|
||||
/// Saves (inserts or updates) a player. When the method returns, the
|
||||
/// player id is not nil.
|
||||
/// player is present in the database, and its id is not nil.
|
||||
func savePlayer(_ player: inout Player) throws {
|
||||
try dbWriter.write { db in
|
||||
try player.save(db)
|
||||
|
||||
@@ -54,7 +54,7 @@ final class AppDatabase {
|
||||
|
||||
extension AppDatabase {
|
||||
/// Saves (inserts or updates) a player. When the method returns, the
|
||||
/// player id is not nil.
|
||||
/// player is present in the database, and its id is not nil.
|
||||
func savePlayer(_ player: inout Player) throws {
|
||||
try dbWriter.write { db in
|
||||
try player.save(db)
|
||||
|
||||
Reference in new issue
Block a user