@statechannels/server-wallet > DBAdmin > truncateDataBaseFromKnex

DBAdmin.truncateDataBaseFromKnex() method

Truncates data from all the specified tables

Signature:

static truncateDataBaseFromKnex(knex: Knex, tables?: string[]): Promise<void>;

Parameters

ParameterTypeDescription
knexKnexA knex instance connected to a wallet database
tablesstring[]A list of table names to truncate, which defaults to ALL tables

Returns:

Promise<void>