@statechannels/server-wallet > DBAdmin > truncateDatabase

DBAdmin.truncateDatabase() method

Truncates data from all the specified tables

Signature:

static truncateDatabase(config: IncomingWalletConfig, tables?: string[]): Promise<void>;

Parameters

ParameterTypeDescription
configIncomingWalletConfigThe wallet configuration object containing the database configuration to use
tablesstring[]A list of table names to truncate. Defaults to ALL tables

Returns:

Promise<void>