Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add squery mill plugin #3581

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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://github.com/sake92/squery/[Squery] SQL library boilerplate.

Project home: https://github.com/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
Loading