MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / truncate

Method truncate

packages/sql/src/query/QueryBuilder.ts:960–962  ·  view source on GitHub ↗

* Creates a TRUNCATE query to remove all rows from the table.

()

Source from the content-addressed store, hash-verified

958 * Creates a TRUNCATE query to remove all rows from the table.
959 */
960 truncate(): TruncateQueryBuilder<Entity> {
961 return this.init(QueryType.TRUNCATE) as unknown as TruncateQueryBuilder<Entity>;
962 }
963
964 /**
965 * Creates a COUNT query to count matching rows.

Callers

nothing calls this directly

Calls 1

initMethod · 0.95

Tested by

no test coverage detected