mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-30 04:28:44 +00:00
#63 follow-up: remove DatabaseEventType from public API
This commit is contained in:
1 parent
0618054968
commit
6dd04142b3
1 file changed
+9
-3
@@ -1656,11 +1656,11 @@ class WeakTransactionObserver {
|
||||
}
|
||||
}
|
||||
|
||||
public protocol DatabaseEventType {
|
||||
protocol DatabaseEventType {
|
||||
}
|
||||
|
||||
/// A database event, notified to TransactionObserverType.
|
||||
public struct DatabaseEvent : DatabaseEventType {
|
||||
public struct DatabaseEvent {
|
||||
|
||||
/// An event kind
|
||||
public enum Kind: Int32 {
|
||||
@@ -1711,6 +1711,9 @@ public struct DatabaseEvent : DatabaseEventType {
|
||||
private let impl: DatabaseEventImpl
|
||||
}
|
||||
|
||||
extension DatabaseEvent : DatabaseEventType {
|
||||
}
|
||||
|
||||
/// Protocol for internal implementation of DatabaseEvent
|
||||
private protocol DatabaseEventImpl {
|
||||
var databaseName: String { get }
|
||||
@@ -1742,7 +1745,7 @@ private struct CopiedDatabaseEventImpl : DatabaseEventImpl {
|
||||
|
||||
#if SQLITE_ENABLE_PREUPDATE_HOOK
|
||||
|
||||
public struct DatabasePreUpdateEvent : DatabaseEventType {
|
||||
public struct DatabasePreUpdateEvent {
|
||||
|
||||
/// An event kind
|
||||
public enum Kind: Int32 {
|
||||
@@ -1864,6 +1867,9 @@ private struct CopiedDatabaseEventImpl : DatabaseEventImpl {
|
||||
private let impl: DatabasePreUpdateEventImpl
|
||||
}
|
||||
|
||||
extension DatabasePreUpdateEvent : DatabaseEventType {
|
||||
}
|
||||
|
||||
/// Protocol for internal implementation of DatabaseEvent
|
||||
private protocol DatabasePreUpdateEventImpl {
|
||||
var databaseName: String { get }
|
||||
|
||||
Reference in new issue
Block a user