- Defined in src/utils.ts:163
- Defined in src/utils.ts:293
Constructors
Constructors
Properties
Methods
create
Creates a new type in GPUdb based on the metadata in the Type object.
Returns Promise<string>
Promise resolving to the type ID
- Defined in src/utils.ts:223
generateSchema
- generateSchema():
fields: name: string; type: string
| string[] [];
name: string;
type: string;Generates an Avro record schema based on the metadata in the Type object.
Returns
fields: name: string; type: string | string[] [];
name: string;
type: string;- Defined in src/utils.ts:206
StaticfromTable
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
- Defined in src/utils.ts:247
- gpudb: GPUdb
StaticfromType
Creates a Type object containing metadata about the specified type in GPUdb.
Returns Promise<Type>
Promise resolving to the Type object
- Defined in src/utils.ts:277
StaticfromTypeInfo
- fromTypeInfo(
label: string,
typeSchema:
| string
| fields: name: string; type: string
| string[] [] ,
properties: Record<string, string[]>,
): TypeCreates 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
- Defined in src/utils.ts:183
Metadata about a GPUdb type.