RowDecoder
for a trait that picked the correct subclass based on the data, but it's not really any different to writing a reusable Row => T
function to pass to prepareAndQuery
ValueDecoder
returns a Try
… IIRC there are places where the error is silently discarded (and you get null
or 0
) but there should be parallel APIs that give you the Try
. My fault, sorry – maybe it should throw there, but it would have been a pretty big behavior change I think
Row
APIs)
WARNING: channelOpen() called when channel was already open, clobbering an existing timer
This test should demonstrate the problem:
"Seq of tuple params for IN operator" in {
val p1 = Seq(("foo", "bar"), ("three", "four"))
expectQuery("SELECT * FROM foo WHERE (a, b) IN (($1, $2), ($3, $4))", "foo", "bar", "three", "four") {
sql"SELECT * FROM foo WHERE a IN ($p1)"
}
}
Its a bit of a weird syntax, but postgres does support it
0.12.0
release with the latest changes (https://github.com/finagle/finagle-postgres/compare/v0.11.0...master)?