From 174907730bd2175bddc896cb6484918e2e5064f5 Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Wed, 22 Feb 2023 22:23:27 -0600 Subject: Make post UUID optional --- src/queries.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/queries.h') diff --git a/src/queries.h b/src/queries.h index 108b249..809d259 100644 --- a/src/queries.h +++ b/src/queries.h @@ -24,6 +24,13 @@ const char *q_select_json_posts = \ const char *q_insert_posts = \ "INSERT INTO posts " +"(title, body) " +"VALUES " +"($1, $2) " +"RETURNING id;"; + +const char *q_insert_posts_with_id = \ +"INSERT INTO posts " "(id, title, body) " "VALUES " "($1, $2, $3) " -- cgit v1.2.3