Guest User

Untitled

a guest
Jan 12th, 2017
286
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