Q006error

Duplicate query name

Two queries declare the same name.

db/queries/example.sql:4:1: error[Q006]: duplicate query name "GetAuthor" (first defined in example.sql:1)
Printed by sgl from a small PostgreSQL reproduction project.

When it is reported

Each query name becomes a method on the generated Queries type, so names must be unique across every query file of a database.

How to fix it

Rename one of the queries.

In your terminal

$ sgl explain Q006

Look for DuplicateQueryName in Seagull's source to see where it is reported.