Skip to content

Commit 2dc343f

Browse files
authored
Add squery mill plugin (#3581)
Closes sake92/squery#9
1 parent b5e04d6 commit 2dc343f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

docs/modules/ROOT/pages/Thirdparty_Plugins.adoc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff 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

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

0 commit comments

Comments
 (0)