Skip to main content

Function: createDataset()

Call Signature

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

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.