(n *pg.CreateStmt)
| 1242 | } |
| 1243 | |
| 1244 | func convertCreateStmt(n *pg.CreateStmt) *ast.CreateStmt { |
| 1245 | if n == nil { |
| 1246 | return nil |
| 1247 | } |
| 1248 | return &ast.CreateStmt{ |
| 1249 | Relation: convertRangeVar(n.Relation), |
| 1250 | TableElts: convertSlice(n.TableElts), |
| 1251 | InhRelations: convertSlice(n.InhRelations), |
| 1252 | Partbound: convertPartitionBoundSpec(n.Partbound), |
| 1253 | Partspec: convertPartitionSpec(n.Partspec), |
| 1254 | OfTypename: convertTypeName(n.OfTypename), |
| 1255 | Constraints: convertSlice(n.Constraints), |
| 1256 | Options: convertSlice(n.Options), |
| 1257 | Oncommit: ast.OnCommitAction(n.Oncommit), |
| 1258 | Tablespacename: makeString(n.Tablespacename), |
| 1259 | IfNotExists: n.IfNotExists, |
| 1260 | } |
| 1261 | } |
| 1262 | |
| 1263 | func convertCreateSubscriptionStmt(n *pg.CreateSubscriptionStmt) *ast.CreateSubscriptionStmt { |
| 1264 | if n == nil { |
no test coverage detected