Documentation
¶
Overview ¶
Package deferred owns the query builders' deferred-error rule.
ADR-031 settled how an identifier violation travels: a clause door records it and keeps returning the builder, and ToSQL() surfaces the FIRST one — a later violation never overwrites an earlier one, so the message names the argument the caller has to fix rather than whichever door ran last.
The rule lived in four byte-identical methods over four plain fields, one per builder, and a fifth door (SubqueryColumn) had already started assigning the field directly. Owning it in one unexported field behind Fail/Err makes that impossible from any other package: there is nothing to assign.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error carries a builder's deferred error. Its zero value is ready to use and reports no error, so a builder embedding it needs no constructor.