Skip to main content

Function: getDataset()

function getDataset(options: object): Promise<DatasetDBType>;
Defined in: src/utils/datasets.ts Gets a dataset database record by ID or name with optional content loading and project validation. Delegates to Datasets.get().

Parameters

options

The options used to locate the dataset.

id?

string (Optional) The ID of the dataset.

name?

string (Optional) The name of the dataset.

projectId?

string (Optional) The ID of the project to validate against.

projectName?

string (Optional) The name of the project to validate against.

withContent?

boolean (Optional) Whether to load the dataset content.

Returns

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