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

Function convertJoinExpr

internal/engine/postgresql/convert.go:1839–1853  ·  view source on GitHub ↗
(n *pg.JoinExpr)

Source from the content-addressed store, hash-verified

1837}
1838
1839func convertJoinExpr(n *pg.JoinExpr) *ast.JoinExpr {
1840 if n == nil {
1841 return nil
1842 }
1843 return &ast.JoinExpr{
1844 Jointype: ast.JoinType(n.Jointype),
1845 IsNatural: n.IsNatural,
1846 Larg: convertNode(n.Larg),
1847 Rarg: convertNode(n.Rarg),
1848 UsingClause: convertSlice(n.UsingClause),
1849 Quals: convertNode(n.Quals),
1850 Alias: convertAlias(n.Alias),
1851 Rtindex: int(n.Rtindex),
1852 }
1853}
1854
1855func convertListenStmt(n *pg.ListenStmt) *ast.ListenStmt {
1856 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 4

JoinTypeTypeAlias · 0.92
convertNodeFunction · 0.85
convertSliceFunction · 0.85
convertAliasFunction · 0.85

Tested by

no test coverage detected