Table of Contents

Class AlterTableAddColumns

Namespace
DataStax.AstraDB.DataApi.Tables
Assembly
DataStax.AstraDB.DataApi.dll

Represents an operation to add new columns to a table.

public class AlterTableAddColumns : IAlterTableOperation
Inheritance
AlterTableAddColumns
Implements
Inherited Members

Constructors

AlterTableAddColumns(Dictionary<string, AlterTableColumnDefinition>)

Initializes a new instance with the specified columns.

public AlterTableAddColumns(Dictionary<string, AlterTableColumnDefinition> columns)

Parameters

columns Dictionary<string, AlterTableColumnDefinition>

The columns to add.

Properties

Columns

Gets the columns to be added.

public Dictionary<string, AlterTableColumnDefinition> Columns { get; }

Property Value

Dictionary<string, AlterTableColumnDefinition>

Methods

ToJsonFragment()

Converts the operation to its JSON representation.

public object ToJsonFragment()

Returns

object

A serializable object representing the operation.