Skip to content

workloads / main / Database

Class: abstract Database ​

Database workload.

Type Param ​

Client type

Extends ​

Extended by ​

Accessors ​

connectionString ​

Get Signature ​

ts
get connectionString(): string

Reads the value fron environment variable name that should hold the connection string.

Returns ​

string

Inherited from ​

StatefulWorkloadWithClient.connectionString


connectionStringEnvVar ​

Get Signature ​

ts
get connectionStringEnvVar(): string

Returns the unique environment variable name that should hold the connection string.

Returns ​

string

Inherited from ​

StatefulWorkloadWithClient.connectionStringEnvVar


databaseId ​

Get Signature ​

ts
get databaseId(): string

Database ID

Note: Alias of ìd.

Returns ​

string

Constructors ​

new Database() ​

ts
new Database(databaseName): Database

Parameters ​

ParameterTypeDescription

databaseName

string

Database name.

Returns ​

Database

Overrides ​

StatefulWorkloadWithClient.constructor

Properties ​

PropertyModifierTypeDescription
databaseNamereadonlystringDatabase name.
idreadonlystringUnique ID