relate
relate copied to clipboard
Performant database access in Scala
SqlQuery.execute() indicates `@return whether the query succeeded in its execution` And StatementPrepared.execute() indicates `return if the query succeeded or not` But the underlying jdbc documentation indicates `true if the first...
In documentation it says Include Relate in Your Project: // build.sbt libraryDependencies += "com.lucidchart" %% "relate" % "2.1.1" resolvers += "Sonatype release repository" at "https://oss.sonatype.org/content/repositories/releases/" I can only get it...
Going through the different db abstractions for Scala I came across Relate. Looks good, but is there a reason the examples are so simple? Please show how to handle joins.
Allow users who want access to an underlying result set that is large to do so through use of streamed statements
For example: Given: ``` case class CustomTypeParameter(str: String, sqlType: String) extends SingleParameter { override protected def set(statement: PreparedStatement, i: Int): Unit = statement.setString(i, str) override def appendPlaceholders(stringBuilder: StringBuilder) = {...
https://github.com/lucidsoftware/relate/issues/20
I was doing a query like this: `sql"""SELECT SUM(x) as c FROM table WHERE ...""".as[Option[Long]]` and trying to parse with this `implicit val sumParser: RowParser[Long] = RowParser(RowParser.long("c"))` It works fine...
Relate assumes the database stores a UUID as a byte array. For (at least) postgres that isn't true since it has a concrete UUID column type. this query ``` val...