Hi Marc,
type providers are indeed coming. We have two implementations at the
moment, one based on type macros, one based on source-code generation.
Macros are just nicely compiler-integrated ast-generators and can be
replaced by classical source-code-generation. Integration of type macros
into main stable scala is currently perceived as too risky and may never
happen. Annotation macros will probably come, but it is not certain yet.
Source-code-generation-based type-providers will likely ship with
upcoming Slick 2.1 later this year. For now, they will only allow
limited control over the structure of the generated source code.
An alternative approach with more control would be using your own code
generator or the one from my migrations tool prototype, which is very
flexible and uses Slick's schema reverse-engineering features. We do not
officially release or maintain it atm, but it is small enough to be
copied and pasted into your code base (~250 LOC).
Code:
https://github.com/cvogt/migrations/tree/master/src/main/scala/scala/slick/jdbc
Usage:
https://github.com/cvogt/migrations/blob/master/src/main/scala/SampleCodegen.scala
Real world application:
https://bhudgeons.telegr.am/blog_posts/slick-tool-for-db-schema-generation .
Chris
--
Slick Team