-
-
Save anatolyra/38a6c3de8f78fb0cb1d2a2275e2ff42a to your computer and use it in GitHub Desktop.
This file contains 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
import scalikejdbc.{DBSession, NamedDB} | |
package object testdata { | |
private[testdata] implicit class NamedDbSession(namedDB: NamedDB) { | |
def withSession[A](session: DBSession)(execution: DBSession => A): A = | |
execution(session) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment