File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -1043,6 +1043,39 @@ object app extends MavenModule with SpringBootModule {
10431043$ mill app.springBootAssembly
10441044----
10451045
1046+
1047+ == Squery
1048+
1049+ Source code generator for https://github.com/sake92/squery/[Squery] SQL library boilerplate.
1050+
1051+ Project home: https://github.com/sake92/squery
1052+
1053+ [source,scala,subs="attributes,verbatim"]
1054+ ----
1055+ import $ivy.`ba.sake::mill-squery-generator_mill0.11:0.6.2`
1056+ import mill._
1057+ import mill.scalalib._
1058+ import ba.sake.squery.generator._
1059+ import ba.sake.squery.generator.mill.SqueryGeneratorModule
1060+
1061+ object app extends ScalaModule with SqueryGeneratorModule {
1062+ // use T.input(T.ctx.env("MY_ENV_VAR")) to set sensitive variables like password etc
1063+ def squeryJdbcUrl = "jdbc:..."
1064+ def squeryUsername = ".."
1065+ def squeryPassword = ".."
1066+ def squerySchemas = Seq("myschema" -> "com.mypackage.myschema")
1067+
1068+ // override to tweak codegen settings
1069+ def squeryGeneratorConfig: T[SqueryGeneratorConfig] = ...
1070+ ----
1071+
1072+ [source,shell]
1073+ ----
1074+ # Generate source files
1075+ $ ./mill root.squeryGenerate
1076+ ----
1077+
1078+
10461079== Universal Packager
10471080
10481081Support universal archive packaging for Java application with Mill, ported from sbt-native-packager.
You can’t perform that action at this time.
0 commit comments