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