You've already forked reloading-manager
A full commitment's what I'm thinking of
This commit is contained in:
@@ -18,6 +18,22 @@ delete
|
||||
from cartridges
|
||||
where id = $1;
|
||||
|
||||
-- name: DeleteLoad :exec
|
||||
delete from loads
|
||||
where id = $1;
|
||||
|
||||
-- name: UpdateLoad :exec
|
||||
update loads set
|
||||
cartridge_id = $1,
|
||||
col = $2,
|
||||
powder_id = $3,
|
||||
powder_gr = $4,
|
||||
primer_id = $5,
|
||||
bullet_id = $6,
|
||||
photo = $7,
|
||||
meta = $8
|
||||
where id = $9;
|
||||
|
||||
-- name: CreateLoad :one
|
||||
insert into loads (cartridge_id, col, powder_id, powder_gr, primer_id, bullet_id, photo, meta)
|
||||
values ($1, $2, $3, $4, $5, $6, $7, $8)
|
||||
@@ -25,6 +41,7 @@ returning id;
|
||||
|
||||
-- name: GetLoadById :one
|
||||
select l.id as id,
|
||||
l.photo as photo,
|
||||
c.id as cartridge_id,
|
||||
c.name as cartridge_name,
|
||||
c.meta as cartridge_meta,
|
||||
|
||||
Reference in New Issue
Block a user