Skip to content

Commit

Permalink
#63 follow-up: remove DatabaseEventType from public API
Browse files Browse the repository at this point in the history
  • Loading branch information
groue committed Jun 3, 2016
1 parent 0618054 commit 6dd0414
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions GRDB/Core/Database.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 }
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 }
Expand Down

0 comments on commit 6dd0414

Please sign in to comment.