(ctx context.Context, tableName string, columnName string, columnType string)
| 175 | } |
| 176 | |
| 177 | func (c *Client) addColumn(ctx context.Context, tableName string, columnName string, columnType string) error { |
| 178 | sql := "alter table " + sanitizeID(tableName) + " add column " + sanitizeID(columnName) + " " + columnType |
| 179 | return c.exec(ctx, sql) |
| 180 | } |
| 181 | |
| 182 | func (c *Client) createTableIfNotExist(ctx context.Context, tableName string, table *schema.Table, skipConstraints bool) error { |
| 183 | var sb strings.Builder |
no test coverage detected