Skip to main content

MakeLiteralForSchema

No overview available.

def MakeLiteralForSchema(
path: storage.DataReference,
columns: []*core.SchemaType_SchemaColumn
) - > *core.Literal

Constructs a core.Literal object representing a schema, encapsulating a URI path and a list of schema columns. This function is used to create a literal representation of a schema for use in data operations or definitions.

Parameters

NameTypeDescription
pathstorage.DataReferenceThe data reference path, which will be converted to a string URI for the schema.
columns[]*core.SchemaType_SchemaColumnA slice of schema columns that define the structure of the schema.

Returns

TypeDescription
*core.LiteralA pointer to a core.Literal object configured to represent a schema.