hiling_go/db/queries/locations.sql

17 lines
279 B
MySQL
Raw Normal View History

2023-09-13 21:42:04 +07:00
-- name: GetListLocations :many
2023-09-14 13:49:03 +07:00
SELECT * FROM locations;
2023-09-13 21:42:04 +07:00
-- name: GetLocation :one
SELECT * FROM locations
WHERE id = $1;
-- name: CreateLocation :exec
INSERT INTO locations(
address,
name,
submitted_by,
regency_id,
google_maps_link
) values (
$1, $2, $3, $4, $5
);