-- name: GetAll :many
select id, name, url, created_at
from manufacturers
order by name;

-- name: CreateManufacturer :exec
insert into manufacturers (id, name, url) values ($1, $2, $3);

-- name: UpdateManufacturer :exec
update manufacturers
set name=$1,
    url=$2
where id = $3;

-- name: GetById :one
select id, name, url, created_at
from manufacturers
where id = $1;

-- name: DeleteById :exec
delete
from manufacturers
where id = $1;