Fix some latent renames
This commit is contained in:
parent
1eade96bcd
commit
4735ce993c
3 changed files with 4 additions and 4 deletions
|
@ -8,6 +8,6 @@ func {{$tableNamePlural}}(mods ...qm.QueryMod) {{$varNameSingular}}Query {
|
|||
|
||||
// {{$tableNamePlural}}X retrieves all the records using an executor.
|
||||
func {{$tableNamePlural}}X(exec boil.Executor, mods ...qm.QueryMod) {{$varNameSingular}}Query {
|
||||
mods = append(mods, qm.Table("{{.Table.Name}}"))
|
||||
mods = append(mods, qm.From("{{.Table.Name}}"))
|
||||
return {{$varNameSingular}}Query{NewQueryX(exec, mods...)}
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ func {{$tableNameSingular}}FindX(exec boil.Executor, {{$pkArgs}}, selectCols ...
|
|||
|
||||
mods := []qm.QueryMod{
|
||||
qm.Select(selectCols...),
|
||||
qm.Table("{{.Table.Name}}"),
|
||||
qm.From("{{.Table.Name}}"),
|
||||
qm.Where(`{{whereClause .Table.PKey.Columns 1}}`, {{$pkNames | join ", "}}),
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ func (o *{{$tableNameSingular}}) DeleteX(exec boil.Executor) error {
|
|||
var mods []qm.QueryMod
|
||||
|
||||
mods = append(mods,
|
||||
qm.Table("{{.Table.Name}}"),
|
||||
qm.From("{{.Table.Name}}"),
|
||||
qm.Where(`{{whereClause .Table.PKey.Columns 1}}`, {{.Table.PKey.Columns | stringMap .StringFuncs.titleCase | prefixStringSlice "o." | join ", "}}),
|
||||
)
|
||||
|
||||
|
@ -103,7 +103,7 @@ func (o {{$tableNameSingular}}Slice) DeleteAllX(exec boil.Executor) error {
|
|||
in := boil.WherePrimaryKeyIn(len(o), {{.Table.PKey.Columns | stringMap .StringFuncs.quoteWrap | join ", "}})
|
||||
|
||||
mods = append(mods,
|
||||
qm.Table("{{.Table.Name}}"),
|
||||
qm.From("{{.Table.Name}}"),
|
||||
qm.Where(in, args...),
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue