-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
more determinism in delete order (forward port of #16401) #16471
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Included suggestions as commits on the branch; @BryceStansfieldAt-da please take a look and merge if you have no followups to those.
@ray-roestenburg-da could you take a second look, as the determinism logic has necessarily changed for interface support, please?
import nonempty.{NonEmpty, +-:} | ||
import nonempty.{+-:, NonEmpty} | ||
import nonempty.NonEmptyReturningOps._ | ||
|
||
import doobie._ | ||
import doobie.implicits._ | ||
|
||
import scala.annotation.nowarn | ||
import scala.collection.immutable.{Seq => ISeq, SortedMap} | ||
import scalaz.{@@, Cord, Functor, OneAnd, Tag, \/, -\/, \/-} | ||
import scala.collection.immutable.{SortedMap, Seq => ISeq} | ||
import scalaz.{-\/, @@, Cord, Functor, OneAnd, Tag, \/, \/-} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
templateId, | ||
) | ||
) | ||
.via(conflation) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update[String](s"DELETE FROM $contractTableNameRaw WHERE contract_id = ?") | ||
.updateMany(cids.values.flatten.toSeq.sorted) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Port #16401 and #16448 from 2.3.x to main.