MCPcopy
hub / github.com/sqlc-dev/sqlc / Join

Method Join

internal/endtoend/testdata/sqlc_embed/mysql/go/query.sql.go:46–57  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

44}
45
46func (q *Queries) Join(ctx context.Context) (JoinRow, error) {
47 row := q.db.QueryRowContext(ctx, join)
48 var i JoinRow
49 err := row.Scan(
50 &i.User.ID,
51 &i.User.Name,
52 &i.User.Age,
53 &i.Post.ID,
54 &i.Post.UserID,
55 )
56 return i, err
57}
58
59const only = `-- name: Only :one
60SELECT users.id, users.name, users.age FROM users

Callers 15

DirFunction · 0.45
PluginsDirFunction · 0.45
AnalysisDirFunction · 0.45
runFunction · 0.45
JoinFunction · 0.45
FormatMethod · 0.45
FormatMethod · 0.45
TestSplitFunction · 0.45

Calls 2

QueryRowContextMethod · 0.65
ScanMethod · 0.45

Tested by 15

TestSplitFunction · 0.36
TestFollowSymlinksFunction · 0.36
TestGlobPatternFunction · 0.36
TestFormatFunction · 0.36
findSchemaFunction · 0.36
TestExamplesVetFunction · 0.36
TestValidSchemaFunction · 0.36
TestExamplesFunction · 0.36