Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T: {} = any

Hierarchy

  • Schema

Index

Constructors

constructor

  • new Schema<T>(fields?: Field<any>[], metadata?: null | Map<string, string>, dictionaries?: null | Map<number, DataType<Type, any>>): Schema<T>
  • Type parameters

    • T: {} = any

    Parameters

    • fields: Field<any>[] = []
    • Optional metadata: null | Map<string, string>
    • Optional dictionaries: null | Map<number, DataType<Type, any>>

    Returns Schema<T>

Properties

Readonly dictionaries

dictionaries: Map<number, DataType<Type, any>>

Readonly fields

fields: Field<T[keyof T]>[]

Readonly metadata

metadata: Map<string, string>

Accessors

[Symbol.toStringTag]

  • get [Symbol.toStringTag](): string

Methods

assign

select

  • select<K>(...columnNames: K[]): Schema<{[ P in string | number | symbol]: T[P] }>
  • Type parameters

    • K: string | number | symbol = any

    Parameters

    • Rest ...columnNames: K[]

    Returns Schema<{[ P in string | number | symbol]: T[P] }>

selectAt

  • selectAt<K>(...columnIndices: number[]): Schema<{}>

toString

  • toString(): string

Generated using TypeDoc