SHARE
TWEET

Untitled

a guest Jan 12th, 2017 251 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private [persistence] class CompiledStatements(val context: Context) {
  2.   implicit val localDateTimeColumnOrdering = LocalDateTimeOrdering.localDateTimeSlickColumnOrder _
  3.  
  4.   import context._
  5.   import api._
  6.  
  7.   val getTransaction = Compiled((id: Rep[UUID]) => transactions.filter(_.id === id))
  8.   // compare with
  9.   val getTransactionExplicit:  CompiledFunction[(Rep[UUID]) => Query[CompiledStatements.this.context.TransactionTable, Transaction, Seq], Rep[UUID], UUID, Query[CompiledStatements.this.context.TransactionTable, Transaction, Seq], Seq[Transaction]] = Compiled((id: Rep[UUID]) => transactions.filter(_.id === id))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top