Skip to content

Commit

Permalink
Scala API change
Browse files Browse the repository at this point in the history
Allow multiple query arguments for same name.
Primarily to support collections.
  • Loading branch information
zapov committed Nov 4, 2022
1 parent fd9fb29 commit 6abe6b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions scala/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ lazy val core = (project in file("revenj-core")
settings (commonSettings ++ publishSettings)
enablePlugins(SbtDslPlatformPlugin)
settings(
version := "1.3.0",
version := "1.4.0",
libraryDependencies ++= Seq(
"org.postgresql" % "postgresql" % "42.3.1",
"joda-time" % "joda-time" % "2.10.13", // TODO: will be removed
Expand All @@ -29,7 +29,7 @@ lazy val core = (project in file("revenj-core")
lazy val akka = (project in file("revenj-akka")
settings (commonSettings ++ publishSettings)
settings(
version := "1.3.0",
version := "1.4.0",
libraryDependencies ++= Seq(
"com.typesafe" % "config" % "1.3.4",
"com.typesafe.akka" %% "akka-http" % "10.2.7",
Expand All @@ -42,7 +42,7 @@ lazy val akka = (project in file("revenj-akka")
lazy val storage = (project in file("revenj-storage")
settings (commonSettings ++ publishSettings)
settings(
version := "1.3.0",
version := "1.4.0",
libraryDependencies ++= Seq(
"com.amazonaws" % "aws-java-sdk-s3" % "1.12.115",
"org.specs2" %% "specs2-scalacheck" % "4.13.0" % Test,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import scala.util.Try
object Queries {

trait CommandQuery[T <: net.revenj.patterns.Command] {
def from(input: Array[Byte], len: Int, contentType: String, arguments: Map[String, String]): Try[T]
def from(input: Array[Byte], len: Int, contentType: String, arguments: Map[String, scala.collection.Seq[String]]): Try[T]

def from(input: java.io.InputStream, contentType: String, arguments: Map[String, String]): Try[T]
def from(input: java.io.InputStream, contentType: String, arguments: Map[String, scala.collection.Seq[String]]): Try[T]

def to(command: T, contentType: String, headers: mutable.Map[String, String], output: java.io.OutputStream): Try[_]
}
Expand Down

0 comments on commit 6abe6b7

Please sign in to comment.