79496214

Date: 2025-03-09 16:29:47
Score: 0.5
Natty:
Report link

The problem is resolved now I was unaware about the sqlc documentation Query Annotations (Query annotations) which states that each query must have a comment in the format -- name: QueryName :commandType directly above it.

like this one db/queries/account.sql

-- name: CreateAccount :one
insert into accounts(
    owner, balance, currency
) values (
    $1, $2, $3
) returning *;
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jasvinder singh