Skip to main content

Function: createDataset()

Call Signature

function createDataset(
  dataset: DatasetType,
  name: string,
): Promise<DatasetDBType>;
Defined in: src/utils/datasets.ts Creates a new dataset from content and a name.

Parameters

dataset

DatasetType The dataset content as a path, object, or array.

name

string The name of the dataset.

Returns

Promise<DatasetDBType> A promise that resolves to the created dataset.

Call Signature

function createDataset(options: CreateDatasetOptions): Promise<DatasetDBType>;
Defined in: src/utils/datasets.ts Creates a new dataset from an options object.

Parameters

options

CreateDatasetOptions The options used to create the dataset.

Returns

Promise<DatasetDBType> A promise that resolves to the created dataset.