Skip to content

Instantly share code, notes, and snippets.

@isaac-weisberg
Last active June 14, 2019 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaac-weisberg/f2afbbe0cdf11108ac8308d2842ee159 to your computer and use it in GitHub Desktop.
Save isaac-weisberg/f2afbbe0cdf11108ac8308d2842ee159 to your computer and use it in GitHub Desktop.
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