-- name: GetItem :one SELECT * FROM store WHERE id = ? LIMIT 1; -- name: CountItems :one SELECT count(*) FROM store; -- name: CreateItem :exec INSERT INTO store (id, data) VALUES (?1, ?2) ON CONFLICT(id) DO UPDATE SET data = ?2;