Table of Contents

Class FieldEscaping

Namespace
DataStax.AstraDB.DataApi.Utils
Assembly
DataStax.AstraDB.DataApi.dll

Utility for escaping and unescaping field names for use in Data API field paths. Dots and ampersands within individual field name segments are escaped so they are not interpreted as path separators or escape characters.

public static class FieldEscaping
Inheritance
FieldEscaping
Inherited Members

Methods

EscapeFieldNames(IEnumerable<string>)

Escapes each segment and joins them with '.' to produce a valid Data API field path.

public static string EscapeFieldNames(IEnumerable<string> segments)

Parameters

segments IEnumerable<string>

Returns

string

EscapeFieldNames(params string[])

Escapes each segment and joins them with '.' to produce a valid Data API field path.

public static string EscapeFieldNames(params string[] segments)

Parameters

segments string[]

Returns

string

UnescapeFieldPath(string)

Splits an escaped Data API field path back into its individual unescaped segments.

public static string[] UnescapeFieldPath(string path)

Parameters

path string

Returns

string[]