diff 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
line wrap: on
line diff
--- a/examples/blog/src/lib/Post.luan	Thu Aug 22 12:32:20 2019 -0600
+++ b/examples/blog/src/lib/Post.luan	Mon Sep 02 22:23:12 2019 -0600
@@ -67,4 +67,8 @@
 	return posts
 end
 
+function Post.delete_by_id(id)
+	db.delete("id:"..id)
+end
+
 return Post