Skip to main content
Module

x/typeorm/src/index.ts>Repository#clear

Forked from https://github.com/typeorm/typeorm
Latest
method Repository.prototype.clear
Re-export
import { Repository } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/index.ts";

Clears all the data from the given table/collection (truncates/drops it).

Note: this method uses TRUNCATE and may not work as you expect in transactions on some platforms.

Returns

Promise<void>