MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / addColumn

Method addColumn

plugins/destination/duckdb/client/migrate.go:177–180  ·  view source on GitHub ↗
(ctx context.Context, tableName string, columnName string, columnType string)

Source from the content-addressed store, hash-verified

175}
176
177func (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
182func (c *Client) createTableIfNotExist(ctx context.Context, tableName string, table *schema.Table, skipConstraints bool) error {
183 var sb strings.Builder

Callers 1

autoMigrateTableMethod · 0.95

Calls 2

execMethod · 0.95
sanitizeIDFunction · 0.70

Tested by

no test coverage detected