//
//  IDatabase.swift
//  Repository
//
//  Created by Hung Q. Truong on 7/21/19.
//

import Foundation

public protocol IDatabase {
    associatedtype T
    
    func add(_ object: T) -> Void
    func update(_ object: T) -> Void
    func delete(_ object: T) -> Void
    func object(ofType type: AnyClass, forPrimaryKey key: String) -> T?
    
}
