tencent cloud

dataset.get
Last updated: 2025-03-11 19:41:14
dataset.get
Last updated: 2025-03-11 19:41:14
dataset.get can obtain data values from the parameter file based on the given column names, and it is mainly used in the primary function.
get(key: string): string

Parameters

Parameter
Type
Description
key
string
Column name

Return

Type
Description
string
Data value.

Usage Examples

Obtain data values from the parameter file:
import dataset from 'pts/dataset';

export default function () {
// Obtain the data value from the dataset with the column name 'key1', assuming the value is 'value1'.
const value = dataset.get('key1');
// Output 'key1 => value1'.
console.log(`key1 => ${value}`);
}

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback