Skip to content

Instantly share code, notes, and snippets.

@lukaseder
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaseder/11077337 to your computer and use it in GitHub Desktop.
Save lukaseder/11077337 to your computer and use it in GitHub Desktop.
Will it serialise deterministically?
conn => {
conn.sendQuery(tableInsert(1)).flatMap {
_ =>
conn.sendQuery(tableInsert(2))
}
conn.sendQuery(tableInsert(3)).flatMap {
_ =>
conn.sendQuery(tableInsert(4))
}
}
// Inspiration taken from
// https://github.com/mauricio/postgresql-async/blob/master/postgresql-async/src/test/scala/com/github/mauricio/async/db/postgresql/TransactionSpec.scala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment