Skip to content

Instantly share code, notes, and snippets.

View kuznero's full-sized avatar

Roman Kuznetsov kuznero

View GitHub Profile
1 11684 base
2 4409 bytestring
3 3980 containers
4 3379 text
5 3099 mtl
6 2565 transformers
7 2019 directory
8 1791 filepath
9 1717 QuickCheck
10 1702 time
r.table("test").get("idValue").update(function(doc) {
return r.branch(
doc("lastUpdate").eq(newDoc["lastUpdate"]),
newDoc.merge({lastUpdate: r.now()}),
r.error("Wrong version")
)
})