(n *pg.OnConflictExpr)
| 2006 | } |
| 2007 | |
| 2008 | func 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 | |
| 2024 | func convertOpExpr(n *pg.OpExpr) *ast.OpExpr { |
| 2025 | if n == nil { |
no test coverage detected