Search in sources :

Example 1 with TruncateTable

use of org.h2.command.ddl.TruncateTable in project h2database by h2database.

the class Parser method parseTruncate.

private Prepared parseTruncate() {
    read("TABLE");
    Table table = readTableOrView();
    TruncateTable command = new TruncateTable(session);
    command.setTable(table);
    return command;
}
Also used : RangeTable(org.h2.table.RangeTable) TruncateTable(org.h2.command.ddl.TruncateTable) CreateTable(org.h2.command.ddl.CreateTable) FunctionTable(org.h2.table.FunctionTable) CreateLinkedTable(org.h2.command.ddl.CreateLinkedTable) Table(org.h2.table.Table) DropTable(org.h2.command.ddl.DropTable) TruncateTable(org.h2.command.ddl.TruncateTable)

Aggregations

CreateLinkedTable (org.h2.command.ddl.CreateLinkedTable)1 CreateTable (org.h2.command.ddl.CreateTable)1 DropTable (org.h2.command.ddl.DropTable)1 TruncateTable (org.h2.command.ddl.TruncateTable)1 FunctionTable (org.h2.table.FunctionTable)1 RangeTable (org.h2.table.RangeTable)1 Table (org.h2.table.Table)1