From b8d62012b2787cf529651c6a7b83810f0f0dc71f Mon Sep 17 00:00:00 2001 From: Franklin Date: Thu, 9 Mar 2023 13:54:54 -0400 Subject: [PATCH] Finished the basic queries for all the tables --- sql/location/get.sql | 1 + sql/location/insert.sql | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 sql/location/get.sql create mode 100644 sql/location/insert.sql diff --git a/sql/location/get.sql b/sql/location/get.sql new file mode 100644 index 0000000..b6759c0 --- /dev/null +++ b/sql/location/get.sql @@ -0,0 +1 @@ +SELECT * FROM location WHERE id = $1; \ No newline at end of file diff --git a/sql/location/insert.sql b/sql/location/insert.sql new file mode 100644 index 0000000..1619d44 --- /dev/null +++ b/sql/location/insert.sql @@ -0,0 +1,5 @@ +INSERT INTO location ( + id, country, province, city, district, google_maps_url +) VALUES ( + $1, $2, $3, $4, $5, $6 +) RETURNING * \ No newline at end of file