Table of Contents

Class AlterTypeRenameFields

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

Represents an operation to rename fields in a User Defined Type.

public class AlterTypeRenameFields : IAlterTypeOperation
Inheritance
AlterTypeRenameFields
Implements
Inherited Members

Constructors

AlterTypeRenameFields(Dictionary<string, string>)

Initializes a new instance with the specified field renames.

public AlterTypeRenameFields(Dictionary<string, string> fields)

Parameters

fields Dictionary<string, string>

The fields to rename (old name -> new name).

Properties

Fields

Gets the fields to be renamed.

public Dictionary<string, string> Fields { get; }

Property Value

Dictionary<string, string>

Methods

GetOperation()

Gets the operation as a tuple (operation name, operation data).

public (string, object) GetOperation()

Returns

(string, object)

A tuple where Item1 is the operation name and Item2 is the operation data.