Created
February 13, 2021 17:59
-
-
Save deanwampler/6042d6486474d27b43d5add8de10fa3b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
trait Transaction(database: DB): | |
def begin(query: String): Either[String,Status] | |
def rollback(): Either[String,Status] | |
def commit(): Either[String,Status] | |
trait ConnectionManager(database: DB): | |
def createTransaction: Transaction | |
def doTransaction(query: => String)( | |
using cm: => ConnectionManager): Seq[Status] = ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment