Skip to content

Commit

Permalink
add read CRUD query
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanulit committed Aug 7, 2024
1 parent 3262cbc commit b8822e5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
5 changes: 5 additions & 0 deletions service/policy/db/query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ DELETE FROM key_access_servers WHERE id = $1;
-- RESOURCE MAPPING GROUPS
----------------------------------------------------------------

-- name: GetResourceMappingGroup :one
SELECT id, namespace_id, name
FROM resource_mapping_groups
WHERE id = $1;

-- name: CreateResourceMappingGroup :one
INSERT INTO resource_mapping_groups (namespace_id, name)
VALUES ($1, $2)
Expand Down
26 changes: 22 additions & 4 deletions service/policy/db/query.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b8822e5

Please sign in to comment.