playframework Slick Output DDL


The whole point of using slick is to write as little SQL code as possible. After you have written your table definition, you will want to create the table in your database.

If you have val table = TableQuery[MyModel] You can get the table definition (SQL code - DDL) running the following command:

import mypackage.SlickDBDriver.driver.api._