(ctx context.Context, table *schema.Table, changes []schema.TableColumnChange)
| 69 | } |
| 70 | |
| 71 | func (c *Client) autoMigrateTable(ctx context.Context, table *schema.Table, changes []schema.TableColumnChange) error { |
| 72 | for _, change := range changes { |
| 73 | if change.Type == schema.TableColumnChangeTypeAdd { |
| 74 | if err := c.addColumn(ctx, table.Name, change.Current.Name, arrowToDuckDB(change.Current.Type)); err != nil { |
| 75 | return err |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | return nil |
| 80 | } |
| 81 | |
| 82 | func (*Client) canAutoMigrate(changes []schema.TableColumnChange) bool { |
| 83 | for _, change := range changes { |
no test coverage detected