Last active
June 14, 2019 07:20
-
-
Save isaac-weisberg/f2afbbe0cdf11108ac8308d2842ee159 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import RxSwift | |
protocol DBAccessServiceProtocol { | |
func select(sql: String) -> Single<Result<Data, DBAccessServiceError>> | |
} | |
enum DBAccessServiceError: Error { | |
case deserialization(Error) | |
case `internal`(Error) | |
case serialization(Error) | |
} | |
// Implementation deliberately skipped |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment