how can use lifted.Query in method ?

11 views
Skip to first unread message

techlan...@gmail.com

unread,
Sep 20, 2017, 5:45:43 AM9/20/17
to Slick / ScalaQuery

hi everyone

  how can write this method

  def GetSingleObjectFromDatabase[E, U, C](query: lifted.Query[E, U, C])=db.run(query.result)

for example i need send
this line :

  GetSingleObjectFromDatabase(table.filter(_.LocaldomainId>1))

But :
i get this Error :
Error:(34, 70) <error> takes no type parameters, expected: one
def GetSingleObjectFromDatabaseE, U, C=db.run(query.result)
and this message:
Error:(34, 70) C takes no type parameters, expected: one
def GetSingleObjectFromDatabaseE, U, C=db.run(query.result)


techlan...@gmail.com

unread,
Sep 21, 2017, 6:49:13 AM9/21/17
to Slick / ScalaQuery

is this question hard ???
Reply all
Reply to author
Forward
0 new messages