Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import Foundation
  2. import RxSwift
  3.  
  4. protocol DBAccessServiceProtocol {
  5. func select(sql: String) -> Single<Result<Data, DBAccessServiceError>>
  6. }
  7.  
  8. enum DBAccessServiceError: Error {
  9. case deserialization(Error)
  10. case `internal`(Error)
  11. case serialization(Error)
  12. }
  13.  
  14. // Implementation deliberately skipped
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement