diff --git a/tutorials/code-gen.html b/tutorials/code-gen.html index cb4d0c3..aea563e 100644 --- a/tutorials/code-gen.html +++ b/tutorials/code-gen.html @@ -32,7 +32,7 @@ padding-left: 3em; font-size: .8em; } -
Squery has a standalone code generator that can generate code for various databases:
+
Squery has a code generator that can generate code for various databases:
Postgres, MySQL, MariaDB, Oracle and H2.
It generates models for table rows and handy DAO code with various utility methods:
Squery codegene is a bit special since it is using Regenesca library.
+When you add a new column for example, it will refactor the *Row
and *Dao
code in place!
+This means you can add your own methods/vals to the generated code, without fear that the codegen will remove it.
+Of course, it is best to use scalafmt
after codegen so that the diff is minimal.
You can use Ammonite to test the generator:
import $ivy.`ba.sake:squery-generator_2.13:0.6.0`
import $ivy.`ba.sake::squery:0.6.0`