hiling_go/db/queries/locations.sql

19 lines
298 B
SQL

-- name: GetListLocations :many
SELECT * FROM locations
LIMIT $1
OFFSET $2;
-- 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
);