comparison examples/blog/src/lib/Post.luan @ 1387:bc40bc9aab3a

start postgres backup
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 02 Sep 2019 22:23:12 -0600
parents 709f7498a363
children 82415c9c0015
comparison
equal deleted inserted replaced
1386:dc36dd8bf839 1387:bc40bc9aab3a
65 posts[#posts+1] = from_doc(doc) 65 posts[#posts+1] = from_doc(doc)
66 end 66 end
67 return posts 67 return posts
68 end 68 end
69 69
70 function Post.delete_by_id(id)
71 db.delete("id:"..id)
72 end
73
70 return Post 74 return Post