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

Function readRelations

internal/tools/sqlc-pg-gen/relation.go:104–111  ·  view source on GitHub ↗
(ctx context.Context, conn *pgx.Conn, schemaName string)

Source from the content-addressed store, hash-verified

102}
103
104func readRelations(ctx context.Context, conn *pgx.Conn, schemaName string) ([]Relation, error) {
105 rows, err := conn.Query(ctx, relationQuery, schemaName)
106 if err != nil {
107 return nil, err
108 }
109
110 return scanRelations(rows)
111}

Callers 1

runFunction · 0.85

Calls 2

scanRelationsFunction · 0.85
QueryMethod · 0.65

Tested by

no test coverage detected