mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Documentation
This commit is contained in:
1 parent
949d706eaa
commit
7d21772f87
1 file changed
+2
-2
@@ -1930,11 +1930,11 @@ When you subclass [Record](#record-class), you simply have to override the custo
|
||||
|
||||
```swift
|
||||
class Person : Record {
|
||||
var uuid: String?
|
||||
var uuid: NSUUID?
|
||||
|
||||
override func insert(db: Database) throws {
|
||||
if uuid == nil {
|
||||
uuid = NSUUID().UUIDString
|
||||
uuid = NSUUID()
|
||||
}
|
||||
try super.insert(db)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user