mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Documentation
This commit is contained in:
1 parent
841b6f68dd
commit
26f08a59ad
2 files changed
+4
-4
No files matched your search
@@ -1817,9 +1817,9 @@ private struct CopiedDatabaseEventImpl : DatabaseEventImpl {
|
||||
/// Returns an event that can be stored:
|
||||
///
|
||||
/// class MyObserver: TransactionObserver {
|
||||
/// var pre_events: [DatabasePreUpdateEvent]
|
||||
/// func databaseWillChangeWithEvent(event: DatabasePreUpdateEvent) {
|
||||
/// pre_events.append(event.copy())
|
||||
/// var events: [DatabasePreUpdateEvent]
|
||||
/// func databaseWillChange(with event: DatabasePreUpdateEvent) {
|
||||
/// events.append(event.copy())
|
||||
/// }
|
||||
/// }
|
||||
public func copy() -> DatabasePreUpdateEvent {
|
||||
|
||||
@@ -2608,7 +2608,7 @@ public protocol TransactionObserverType : class {
|
||||
///
|
||||
/// The event is only valid for the duration of this method call. If you
|
||||
/// need to keep it longer, store a copy: event.copy().
|
||||
func databaseWillChangeWithEvent(event: DatabasePreUpdateEvent)
|
||||
func databaseWillChange(with event: DatabasePreUpdateEvent)
|
||||
#endif
|
||||
}
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user