Implementing LINQ-like functions in Scala

LINQ-to-SQL works in C # because of the "magic" compiler, which allows you to use the same syntax for expression trees and anonymous functions. If users are IQueryable here users.Where(u => u.UserId == 1) , then the compiler will create an expression tree and ultimately pass it to the query generator. How is similar functionality implemented in Scala where there is no such help from the compiler?

+4
source share
2 answers

Since Scala 2.10, help from the compiler.

The closest LINQ-to-SQL equivalent will be SLICK .

+2
source

Slick is the official type tool that does what you need.

+2
source

All Articles