Skip to main content

Metadata about a GPUdb type.

  • Creates a Type object.

    Parameters

    • label: string

      A user-defined description string

    • …columns: Column[]

      The columns that make up the type

    Returns Type

columns: Column[]

The list of columns that the type comprises

label: string

A user-defined description string

  • Creates a new type in GPUdb based on the metadata in the Type object.

    Parameters

    • gpudb: GPUdb

      GPUdb client instance

    Returns Promise<string>

    Promise resolving to the type ID

  • Generates an Avro record schema based on the metadata in the Type object.

    Returns
    fields: name: string; type: string | string[] [];
    name: string;
    type: string;

  • Creates a Type object containing metadata about the type stored in the specified table.

    Parameters

    • gpudb: GPUdb

      GPUdb client instance

    • tableName: string

      The table from which to obtain type metadata

    Returns Promise<Type>

    Promise resolving to the Type object

  • Creates a Type object containing metadata about the specified type in GPUdb.

    Parameters

    • gpudb: GPUdb

      GPUdb client instance

    • typeId: string

      The type for which to obtain metadata

    Returns Promise<Type>

    Promise resolving to the Type object

  • Creates a Type object using data returned from GPUdb show_table or show_types.

    Parameters

    • label: string
    • typeSchema: string | fields: name: string; type: string | string[] []
    • properties: Record<string, string[]>

    Returns Type