Skip to content

Commit

Permalink
Add squery mill plugin (#3581)
Browse files Browse the repository at this point in the history
  • Loading branch information
sake92 authored Sep 18, 2024
1 parent b5e04d6 commit 2dc343f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/modules/ROOT/pages/Thirdparty_Plugins.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,39 @@ object app extends MavenModule with SpringBootModule {
$ mill app.springBootAssembly
----


== Squery

Source code generator for https:/sake92/squery/[Squery] SQL library boilerplate.

Project home: https:/sake92/squery

[source,scala,subs="attributes,verbatim"]
----
import $ivy.`ba.sake::mill-squery-generator_mill0.11:0.6.2`
import mill._
import mill.scalalib._
import ba.sake.squery.generator._
import ba.sake.squery.generator.mill.SqueryGeneratorModule
object app extends ScalaModule with SqueryGeneratorModule {
// use T.input(T.ctx.env("MY_ENV_VAR")) to set sensitive variables like password etc
def squeryJdbcUrl = "jdbc:..."
def squeryUsername = ".."
def squeryPassword = ".."
def squerySchemas = Seq("myschema" -> "com.mypackage.myschema")
// override to tweak codegen settings
def squeryGeneratorConfig: T[SqueryGeneratorConfig] = ...
----

[source,shell]
----
# Generate source files
$ ./mill root.squeryGenerate
----


== Universal Packager

Support universal archive packaging for Java application with Mill, ported from sbt-native-packager.
Expand Down

0 comments on commit 2dc343f

Please sign in to comment.