(n *pg.ColumnDef)
| 822 | } |
| 823 | |
| 824 | func convertColumnDef(n *pg.ColumnDef) *ast.ColumnDef { |
| 825 | if n == nil { |
| 826 | return nil |
| 827 | } |
| 828 | return &ast.ColumnDef{ |
| 829 | Colname: n.Colname, |
| 830 | TypeName: convertTypeName(n.TypeName), |
| 831 | Inhcount: int(n.Inhcount), |
| 832 | IsLocal: n.IsLocal, |
| 833 | IsNotNull: n.IsNotNull, |
| 834 | IsFromType: n.IsFromType, |
| 835 | Storage: makeByte(n.Storage), |
| 836 | RawDefault: convertNode(n.RawDefault), |
| 837 | CookedDefault: convertNode(n.CookedDefault), |
| 838 | Identity: makeByte(n.Identity), |
| 839 | CollClause: convertCollateClause(n.CollClause), |
| 840 | CollOid: ast.Oid(n.CollOid), |
| 841 | Constraints: convertSlice(n.Constraints), |
| 842 | Fdwoptions: convertSlice(n.Fdwoptions), |
| 843 | Location: int(n.Location), |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | func convertColumnRef(n *pg.ColumnRef) *ast.ColumnRef { |
| 848 | if n == nil { |
no test coverage detected