Skip to content

Instantly share code, notes, and snippets.

@jczuchnowski
Created August 4, 2019 21:24
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 jczuchnowski/5b2b0fb120c7f55e22b5282277c367d3 to your computer and use it in GitHub Desktop.
Save jczuchnowski/5b2b0fb120c7f55e22b5282277c367d3 to your computer and use it in GitHub Desktop.
trait DatabaseProvider {
def databaseProvider: DatabaseProvider.Service
}
object DatabaseProvider {
trait Service {
def db: UIO[BasicBackend#DatabaseDef]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment