doobie icon indicating copy to clipboard operation
doobie copied to clipboard

BigInt Meta?

Open george-wilson-rea opened this issue 2 years ago • 1 comments

Hi tpolecat, thanks for doobie mate, it rocks. I would like a Meta[BigInt] for working with MySQL. We're just defining it in our own code for now, although I'm not confident in the implementation, but it would be grand if this instance could be provided by a doobie-contrib-mysql package or something like that. I see that was mentioned in #81 but I'm not sure that that went anywhere.

george-wilson-rea avatar Nov 21 '22 06:11 george-wilson-rea

Hi @george-wilson-rea, A PR adding doobie-mysql submodule would be welcome.

You can follow the pattern laid out in the postgres submodule

  • https://github.com/tpolecat/doobie/blob/main/modules/postgres/src/main/scala/doobie/postgres/Instances.scala
  • https://github.com/tpolecat/doobie/blob/main/modules/postgres/src/main/scala/doobie/postgres/package.scala

Let me know if you have any questions.

jatcwang avatar Nov 21 '22 12:11 jatcwang