Skip to content

workloads / test-helpers / truncatePostgresTables

Function: truncatePostgresTables()

ts
function truncatePostgresTables(workload, schemaName?): Promise<void>

Truncates all the tables in a PostgresDatabase workload.

Parameters

ParameterTypeDescription

workload

PostgresDatabase

PostgresDatabase workload

schemaName?

string

Schema name (default: public)

Returns

Promise<void>