Skip to content

Instantly share code, notes, and snippets.

@jczuchnowski
Created August 4, 2019 21:25
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jczuchnowski/7693041e6af1e4e0375bcf12d81b5379 to your computer and use it in GitHub Desktop.
trait LiveDatabaseProvider extends DatabaseProvider {
override val databaseProvider = new DatabaseProvider.Service {
override val db = ZIO.effectTotal(Database.forURL(url = "jdbc:h2:prod"))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment