MCPcopy Index your code
hub / github.com/upper/db / pushJoin

Method pushJoin

internal/sqlbuilder/select.go:88–107  ·  view source on GitHub ↗
(t string, tables []interface{})

Source from the content-addressed store, hash-verified

86}
87
88func (sq *selectorQuery) pushJoin(t string, tables []interface{}) error {
89 fragments, args, err := columnFragments(tables)
90 if err != nil {
91 return err
92 }
93
94 if sq.joins == nil {
95 sq.joins = []*exql.Join{}
96 }
97 sq.joins = append(sq.joins,
98 &exql.Join{
99 Type: t,
100 Table: exql.JoinColumns(fragments...),
101 },
102 )
103
104 sq.joinsArgs = append(sq.joinsArgs, args...)
105
106 return nil
107}
108
109type selector struct {
110 builder *sqlBuilder

Callers 5

FullJoinMethod · 0.80
CrossJoinMethod · 0.80
RightJoinMethod · 0.80
LeftJoinMethod · 0.80
JoinMethod · 0.80

Calls 2

JoinColumnsFunction · 0.92
columnFragmentsFunction · 0.85

Tested by

no test coverage detected