Skip to content

Commit 57bb5a5

Browse files
committed
Update all Slick documentation links to 2.1.0-M2
1 parent 522f72f commit 57bb5a5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tutorial/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ <h2>Run the App and the Tests</h2>
3333
<h2>Project Setup</h2>
3434

3535
<p>
36-
Slick is a library that is easy to include in any project. This project uses the sbt build tool so the dependency for Slick is specified in the <a href="#code/build.sbt" class="shortcut">build.sbt</a> file. To make things simple this project uses the H2 database in-memory. <a href="http://slick.typesafe.com/doc/2.0.0-M3/connection.html" target="_blank">Learn more about connecting to other databases in the Slick docs</a>.
36+
Slick is a library that is easy to include in any project. This project uses the sbt build tool so the dependency for Slick is specified in the <a href="#code/build.sbt" class="shortcut">build.sbt</a> file. To make things simple this project uses the H2 database in-memory. <a href="http://slick.typesafe.com/doc/2.1.0-M2/connection.html" target="_blank">Learn more about connecting to other databases in the Slick docs</a>.
3737
</p>
3838
</div>
3939

4040
<div>
4141
<h2>Schema / Table Mapping</h2>
4242

4343
<p>
44-
The <a href="#code/src/main/scala/Tables.scala" class="shortcut">Tables.scala</a> file contains the mappings for a <code>Suppliers</code> and a <code>Coffees</code> table. These <code>Table</code> create a mapping between a database table and a class. The table's columns are also mapped to functions. This mapping is called <a href="http://slick.typesafe.com/doc/2.0.0/introduction.html#lifted-embedding" target="_blank">Lifted Embedding</a> since the types of a column mappings are not the actual column value's type, but a wrapper type. For a column that contains a <code>Double</code> value the type of mapping will be <code>Column[Double]</code>. This enables type-safe queries to be built around meta-data and then executed against the database.
44+
The <a href="#code/src/main/scala/Tables.scala" class="shortcut">Tables.scala</a> file contains the mappings for a <code>Suppliers</code> and a <code>Coffees</code> table. These <code>Table</code> create a mapping between a database table and a class. The table's columns are also mapped to functions. This mapping is called <a href="http://slick.typesafe.com/doc/2.1.0-M2/introduction.html#lifted-embedding" target="_blank">Lifted Embedding</a> since the types of a column mappings are not the actual column value's type, but a wrapper type. For a column that contains a <code>Double</code> value the type of mapping will be <code>Column[Double]</code>. This enables type-safe queries to be built around meta-data and then executed against the database.
4545

4646
Using a table mapping object requires creating a <code>TableQuery</code> instance for the <code>Table</code> classes. In <a href="#code/src/main/scala/HelloSlick.scala" class="shortcut">HelloSlick.scala</a> the <code>suppliers</code> is the <code>TableQuery</code> instance for the <a href="#code/src/main/scala/Tables.scala" class="shortcut">Suppliers</a> class.<br/>
4747

48-
<a href="http://slick.typesafe.com/doc/2.0.0/schemas.html" target="_blank">Learn more about mapping tables and columns in the Slick docs</a>.
48+
<a href="http://slick.typesafe.com/doc/2.1.0-M2/schemas.html" target="_blank">Learn more about mapping tables and columns in the Slick docs</a>.
4949
</p>
5050
</div>
5151

@@ -62,7 +62,7 @@ <h2>Database Connection</h2>
6262

6363
It is also possible to create a session and manually close it. The <a href="#code/src/test/scala/TablesSuite.scala" class="shortcut">TablesSuite.scala</a> tests do this in the <code>before</code> and <code>after</code> functions.
6464

65-
<a href="http://slick.typesafe.com/doc/2.0.0/connection.html#session-handling" target="_blank">Learn more about session and connnection handling in the Slick docs</a>.
65+
<a href="http://slick.typesafe.com/doc/2.1.0-M2/connection.html#session-handling" target="_blank">Learn more about session and connnection handling in the Slick docs</a>.
6666
</p>
6767
</div>
6868

@@ -87,7 +87,7 @@ <h2>Basic CRUD</h2>
8787
</p>
8888

8989
<p>
90-
Basic reads / queries can be done through the <code>TableQuery</code> instance using <a href="http://slick.typesafe.com/doc/2.0.0/api/#scala.slick.jdbc.UnitInvoker" target="_blank">Invoker</a> functions. A simple example of invoking a query is to just call <code>list</code> on the <code>Query</code>, like:
90+
Basic reads / queries can be done through the <code>TableQuery</code> instance using <a href="http://slick.typesafe.com/doc/2.1.0-M2/api/#scala.slick.jdbc.UnitInvoker" target="_blank">Invoker</a> functions. A simple example of invoking a query is to just call <code>list</code> on the <code>Query</code>, like:
9191
<pre><code>suppliers.list</code></pre>
9292
That would produce a <code>List[(Int, String, String, String, String, String)]</code> that corresponds to the columns defined in the <code>Table</code> mapping. Other methods like <code>foreach</code>, <code>first</code>, <code>foldLeft</code> also perform queries. Filtering, sorting, and joining will be covered in the next few sections of the tutorial. In <a href="#code/src/main/scala/HelloSlick.scala" class="shortcut">HelloSlick.scala</a> you can see how a <code>foreach</code> is used to do a <code>select *</code> query and then print each row.
9393
</p>
@@ -225,7 +225,7 @@ <h2>Running Queries</h2>
225225
<div>
226226
<h2>Next Steps</h2>
227227

228-
<p>Check out the full <a href="http://slick.typesafe.com/doc/2.0.1/" target="_blank">Slick manual and API docs</a>.</p>
228+
<p>Check out the full <a href="http://slick.typesafe.com/doc/2.1.0-M2/" target="_blank">Slick manual and API docs</a>.</p>
229229

230230
<p>You can also find more Slick templates, contributed by both, the Slick team and the community, <a href="/home" class="shortcut">here in Activator</a>.</p>
231231
</div>

0 commit comments

Comments
 (0)