Skip to content

Commit

Permalink
Deploying to gh-pages from @ 198bfb3 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
sake92 committed Sep 20, 2024
1 parent 3f893d7 commit fd596d3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions tutorials/code-gen.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
This means you can add your own methods/vals to the <em>generated code</em>, without fear that the codegen will remove it.<br />
Of course, it is best to use <code>scalafmt</code> after codegen so that the diff is minimal.</p>
</section><section id="standalone-generator"><h2>Standalone generator</h2><p>You can use Ammonite to test the generator:</p>
<pre><code class="language-scala">import $ivy.`ba.sake:squery-generator_2.13:0.6.2`
import $ivy.`ba.sake::squery:0.6.2`
<pre><code class="language-scala">import $ivy.`ba.sake:squery-generator_2.13:0.6.3`
import $ivy.`ba.sake::squery:0.6.3`
// if using Postgres JSONB
// import $ivy.`ba.sake::squery-postgres-jawn:0.6.2`
// import $ivy.`ba.sake::squery-postgres-jawn:0.6.3`
import $ivy.`org.postgresql:postgresql:42.7.4`
import $ivy.`com.zaxxer:HikariCP:5.1.0`

Expand All @@ -72,7 +72,7 @@
}
</code></pre>
</section><section id="mill-plugin"><h2>Mill plugin</h2><p>Squery provides a Mill plugin:</p>
<pre><code class="language-scala">import $ivy.`ba.sake::mill-squery-generator_mill0.11:0.6.2`
<pre><code class="language-scala">import $ivy.`ba.sake::mill-squery-generator_mill0.11:0.6.3`
import ba.sake.squery.generator._
import ba.sake.squery.generator.mill.SqueryGeneratorModule

Expand Down
6 changes: 3 additions & 3 deletions tutorials/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,18 @@
}
</style></head><body><div class="hidden-print"><nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top"><div class="container-fluid"><a class="navbar-brand" href="../index.html"><span><img src="../images/favicon.ico" alt="logo" width="32" height="32" /></span> Squery</a><button type="button" class="navbar-toggler collapsed" data-bs-toggle="collapse" data-bs-target="#main-navbar"><span class="navbar-toggler-icon"></span></button><div class="collapse navbar-collapse" id="main-navbar"><ul class="navbar-nav"></ul><ul class="navbar-nav ms-auto"><li class="nav-item"><a href="index.html" class="active nav-link">Tutorials</a></li><li class="nav-item"><a href="../howtos/index.html" class="nav-link">How-Tos</a></li><li class="nav-item"><a href="../reference/index.html" class="nav-link">Reference</a></li><li class="nav-item"><a href="../philosophy/index.html" class="nav-link">Philosophy</a></li></ul></div></div></nav></div><div class="container-fluid"><div class="row"><div class="col-md-3 d-flex justify-content-end hidden-print"><nav class="affix"><ul class="nav nav-pills flex-column"><li><a href="index.html" class="nav-link active">Tutorials</a></li><li><a href="getting-started.html" class="nav-link ">Getting Started</a></li><li><a href="code-gen.html" class="nav-link ">Code Generation</a></li></ul></nav></div><div data-bs-spy="scroll" data-bs-target="#tocScrollspy" class="col-md-6"><div class="hidden-print"></div><div><section id="quickstart"><h2>Quickstart</h2><p>Hello world!</p>
<section id="mill"><h3>Mill</h3><pre><code class="language-scala">def ivyDeps = super.ivyDeps() ++ Agg(
ivy&quot;ba.sake::squery:0.6.2&quot;
ivy&quot;ba.sake::squery:0.6.3&quot;
// &lt;add your favorite JDBC driver&gt;
// &lt;preferably add a connection pool like HikariCP too&gt;
)
</code></pre>
</section><section id="sbt"><h3>Sbt</h3><pre><code class="language-scala">libraryDependencies ++= Seq(
&quot;ba.sake&quot; %% &quot;squery&quot; % &quot;0.6.2&quot;
&quot;ba.sake&quot; %% &quot;squery&quot; % &quot;0.6.3&quot;
// &lt;add your favorite JDBC driver&gt;
// &lt;preferably add a connection pool like HikariCP too&gt;
)
</code></pre>
</section><section id="scala-cli"><h3>Scala CLI</h3><pre><code class="language-scala">//&gt; using dep ba.sake::squery:0.6.2
</section><section id="scala-cli"><h3>Scala CLI</h3><pre><code class="language-scala">//&gt; using dep ba.sake::squery:0.6.3
// &lt;add your favorite JDBC driver&gt;
// &lt;preferably add a connection pool like HikariCP too&gt;
</code></pre>
Expand Down

0 comments on commit fd596d3

Please sign in to comment.