Remove a bunch of generated bob, add feature and review tasks
This commit is contained in:
parent
662188485e
commit
527e82031e
206 changed files with 5761 additions and 141269 deletions
|
|
@ -16,7 +16,6 @@ import (
|
|||
"github.com/Gleipnir-Technology/bob/dialect/psql/sm"
|
||||
"github.com/Gleipnir-Technology/bob/dialect/psql/um"
|
||||
"github.com/Gleipnir-Technology/bob/expr"
|
||||
"github.com/Gleipnir-Technology/bob/mods"
|
||||
"github.com/Gleipnir-Technology/bob/orm"
|
||||
"github.com/Gleipnir-Technology/bob/types/pgtypes"
|
||||
enums "github.com/Gleipnir-Technology/nidus-sync/db/enums"
|
||||
|
|
@ -700,32 +699,3 @@ func (os CommsTextJobSlice) LoadDestinationPhone(ctx context.Context, exec bob.E
|
|||
|
||||
return nil
|
||||
}
|
||||
|
||||
type commsTextJobJoins[Q dialect.Joinable] struct {
|
||||
typ string
|
||||
DestinationPhone modAs[Q, commsPhoneColumns]
|
||||
}
|
||||
|
||||
func (j commsTextJobJoins[Q]) aliasedAs(alias string) commsTextJobJoins[Q] {
|
||||
return buildCommsTextJobJoins[Q](buildCommsTextJobColumns(alias), j.typ)
|
||||
}
|
||||
|
||||
func buildCommsTextJobJoins[Q dialect.Joinable](cols commsTextJobColumns, typ string) commsTextJobJoins[Q] {
|
||||
return commsTextJobJoins[Q]{
|
||||
typ: typ,
|
||||
DestinationPhone: modAs[Q, commsPhoneColumns]{
|
||||
c: CommsPhones.Columns,
|
||||
f: func(to commsPhoneColumns) bob.Mod[Q] {
|
||||
mods := make(mods.QueryMods[Q], 0, 1)
|
||||
|
||||
{
|
||||
mods = append(mods, dialect.Join[Q](typ, CommsPhones.Name().As(to.Alias())).On(
|
||||
to.E164.EQ(cols.Destination),
|
||||
))
|
||||
}
|
||||
|
||||
return mods
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue