TruncateTable() public method

Truncate the table. This means all key-values in the table are dropped.
public TruncateTable ( ) : void
return void
Beispiel #1
0
        public void ResetTables()
        {
            indices.TruncateTable();
            table.TruncateTable();
            tableByNick.TruncateTable();
            tableByBirth.TruncateTable();
            tableByLastLogin.TruncateTable();

            userIDs.Reset();
        }
Beispiel #2
0
        public static Table GetOrCreateEmptyTableAndDatabase(Client client, string dbName, string tableName)
        {
            Table table = GetOrCreateTableAndDatabase(client, dbName, tableName);

            if (table == null)
            {
                return(null);
            }

            table.TruncateTable();

            return(table);
        }