Documentation ¶ Index ¶ func NamedParameters(engine config.Engine, raw *ast.RawStmt, numbs map[int]bool, dollar bool) (*ast.RawStmt, *named.ParamSet, []source.Edit) type Embed func (e Embed) Orig() string type EmbedSet func Embeds(raw *ast.RawStmt) (*ast.RawStmt, EmbedSet) func (es EmbedSet) Find(node *ast.ColumnRef) (*Embed, bool) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NamedParameters ¶ func NamedParameters(engine config.Engine, raw *ast.RawStmt, numbs map[int]bool, dollar bool) (*ast.RawStmt, *named.ParamSet, []source.Edit) Types ¶ type Embed ¶ type Embed struct { Table *ast.TableName Node *ast.ColumnRef // contains filtered or unexported fields } Embed is an instance of `sqlc.embed(param)` func (Embed) Orig ¶ func (e Embed) Orig() string Orig string to replace type EmbedSet ¶ type EmbedSet []*Embed EmbedSet is a set of Embed instances func Embeds ¶ func Embeds(raw *ast.RawStmt) (*ast.RawStmt, EmbedSet) Embeds rewrites `sqlc.embed(param)` to a `ast.ColumnRef` of form `param.*`. The compiler can make use of the returned `EmbedSet` while expanding the `param.*` column refs to produce the correct source edits. func (EmbedSet) Find ¶ func (es EmbedSet) Find(node *ast.ColumnRef) (*Embed, bool) Find a matching embed by column ref Source Files ¶ View all Source files embeds.go parameters.go Click to show internal directories. Click to hide internal directories.