MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / convertOnConflictExpr

Function convertOnConflictExpr

internal/engine/postgresql/convert.go:2008–2022  ·  view source on GitHub ↗
(n *pg.OnConflictExpr)

Source from the content-addressed store, hash-verified

2006}
2007
2008func convertOnConflictExpr(n *pg.OnConflictExpr) *ast.OnConflictExpr {
2009 if n == nil {
2010 return nil
2011 }
2012 return &ast.OnConflictExpr{
2013 Action: ast.OnConflictAction(n.Action),
2014 ArbiterElems: convertSlice(n.ArbiterElems),
2015 ArbiterWhere: convertNode(n.ArbiterWhere),
2016 Constraint: ast.Oid(n.Constraint),
2017 OnConflictSet: convertSlice(n.OnConflictSet),
2018 OnConflictWhere: convertNode(n.OnConflictWhere),
2019 ExclRelIndex: int(n.ExclRelIndex),
2020 ExclRelTlist: convertSlice(n.ExclRelTlist),
2021 }
2022}
2023
2024func convertOpExpr(n *pg.OpExpr) *ast.OpExpr {
2025 if n == nil {

Callers 2

convertQueryFunction · 0.85
convertNodeFunction · 0.85

Calls 4

OnConflictActionTypeAlias · 0.92
OidTypeAlias · 0.92
convertSliceFunction · 0.85
convertNodeFunction · 0.85

Tested by

no test coverage detected