@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
Parameter | Type | Description |
---|---|---|
config | IncomingWalletConfig | The wallet configuration object containing the database configuration to use |
tables | string[] | A list of table names to truncate. Defaults to ALL tables |
Returns:
Promise<void>