aboutsummaryrefslogblamecommitdiff
path: root/tutorial/index.html
blob: a77b4dc34dcfcee2e17984170d86e6437c22d063 (plain) (tree)


















                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
<html>
<head>
    <title>Using Slicks default code generator</title>
</head>
<body>

<div>
    <h2>Using Slicks default code generator</h2>
    <pre>
This code example shows how to setup sbt to use Slick's preconfigued code-generator for working with an existing database schema. <code>project/Build.scala</code> enables automatically as well as manually triggered code-generation. <code>src/main/scala/Example.scala</code> uses the generated code. The code is generated into file <code>target/scala-2.10/src_managed/slick/demo/Tables.scala</code>, which can be changed in the sbt script. It is usally wise to keep the generated Slick code under version control.

Use <code>sbt run</code> to run the demo.

More info about Slick on <a href="http://slick.typesafe.com/docs/">http://slick.typesafe.com/docs/</a>
    </pre>
</div>

</body>
</html>