doobie
doobie copied to clipboard
Functional JDBC layer for Scala.
I would be happy to open PR, is it harder than it sounds like? I assume we could just pass transactor and implement probe method. Is that correct?
Thank you very much for creating doobie! Hope you don't mind me posting such a noob question, but I am just not sure if what I intend to do is...
I have a class ```scala // This exists in an internal library case class CustomDateTime(v: ZonedDateTime) { def someConversion: NewType = ??? } // This is in my application object...
The docs for [Statement.executeBatch](https://docs.oracle.com/javase/8/docs/api/java/sql/Statement.html#executeBatch--) from the JDBC Api explicitly state that possible values are: >=0 which is the update count, `SUCCESS_NO_INFO (= -2)` or `EXECUTE_FAILED (=-3)`. The current `updateMany` implementation...
Using `scalac-profiling`, I was able to generate a flamegraph to profile the compilation of my scala project. With great success, I was able to dramatically reduce compilation times by creating...
The current implementation of `Meta` for `java.time.Instant`, as contributed in #360 by @fiadliel, is based on the conversion to and from `java.sql.Timestamp` available in the Standard Java Libraries. This implementation,...
PostGIS Types support seems to be missing a mapping for the `geography` type: ``` sql"select location from foo limit 1".query[org.postgis.Point].unique.transact(xa).unsafeRunSync doobie.util.invariant$InvalidObjectMapping: SQL object of class org.postgresql.util.PGobject cannot be cast to...
In the doc there isn't any example of sql statement that use a like expression. Using something like the following doesn't work: ``` SELECT* FROM table t WHERE t.field LIKE...
In my app we use the `doobie.hikari.HikariTransactor#newHikariTransactor` constructor to build a Hikari transactor. And we are seeing a lot of debug lines like so: ``` 2020-08-07 04:49:46,900 DEBUG [c.z.h.p.PoolBase:240] HikariPool-1...
I'd expect the following custom mapping to work: ``` final case class SomeId(hash: String) final case class Other( ... , x: List[SomeId] , ...) implicit val someIdGet: Get[SomeId] = Get[String].map(SomeId)...