Reputation: 8203
I understand that the functionality to reverse engineer a schema from an existing database is in development for slick-2. Could someone point me to the api for doing this and what the status of this functionality is. Is it in master or do I need to switch branches? Pointers to any kind of doc for this feature would also be great.
Upvotes: 0
Views: 752
Reputation: 11270
The feature that will make it into 2.0 is in this PR https://github.com/slick/slick/pull/233
There is no documentation at the moment besides the code. To understand how to use it you will have to look at
GeneratedClasses
that uses them to run the code-generatorGeneratedClasses
during the build(UPDATE: added links to the source code above)
There is also an older prototype which I wrote taking a different approach for Slick 1.0. bhudgeons wrote a blog post about how he used it https://bhudgeons.telegr.am/blog_posts/slick-tool-for-db-schema-generation
There has been some experimental work going on using type macros, but they wont make it into Scala, so we have to rewrite it for annotation macros at some point.
Upvotes: 1