Dever v0.0.2
This commit is contained in:
commit
e6e175ebcf
816 files changed
+120349
No files matched your search
@@ -0,0 +1,16 @@
|
||||
change(number: Int, title: Text) (out: Int) {
|
||||
created = model.create({ number = number, title = title, amount = number })
|
||||
found = model.get(created.id)
|
||||
updated = model.update(found.id, { amount = found.amount + 1 })
|
||||
out = updated.amount
|
||||
}
|
||||
|
||||
batch(numbers: List<Int>, title: Text) (checksum: Int, count: Int) {
|
||||
removed = model.delete({ where = number >= 0 })
|
||||
checksum = sum(each(change, numbers, title))
|
||||
count = model.count()
|
||||
}
|
||||
|
||||
count() (out: Int) {
|
||||
out = model.count()
|
||||
}
|
||||
Reference in new issue
Block a user