Daniel Mahler
Daniel Mahler

Reputation: 8203

Reverse engineering a schema from existing database with Slick

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

Answers (1)

cvogt
cvogt

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

(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

Related Questions