Skip to content

Instantly share code, notes, and snippets.

@w495
Created April 14, 2014 12:56
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 w495/10645361 to your computer and use it in GitHub Desktop.
Save w495/10645361 to your computer and use it in GitHub Desktop.
User = db:list(user, #req{
fields=[id, name, {as, passhash, password}],
limit=10,
offset=10
}),
db:update(user, #req{
filter = [
{id, 42}
{name, <<"100500">>}
],
values = [
{name, <<"100501">>}
],
limit=1,
}),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment