Reset all SQL parts

@param array $name
@return $this
164605
public function resetSqlParts($name = null)
    {
        if (is_null($name)) {
            $name = array_keys($this->sqlParts);
        }
        foreach ($name as $queryPartName) {
            $this->resetSqlPart($queryPartName);
        }
        return $this;
    }
836504
public function reset($name = null) {
        if (defined('ARTISAN_TASK_PID')) {
            $pid = @posix_getpid();
        } else {
            $pid = 0;
        }
        if (!$name) {
            $name = $this->cfGname;
        }
        if (isset(self::$INSTANCE[ $pid ][ $name ])) {
            /**@var \wulaphp\db\dialect\DatabaseDialect $dr */
            $dr = self::$INSTANCE[ $pid ][ $name ];
            try {
                $dr->listDatabases();

                return $dr;
            } catch (\Exception $e) {
                unset(self::$INSTANCE[ $pid ][ $name ]);
            }
        }

        return self::getDialect(self::$cfgOptions[ $name ]);
    }
205209
public function reset($name = null) {
		if ($name === 'violations') {
			$this->_violations = array();
		} elseif ($name === 'warnings') {
			$this->_warnings = array();
		} else {
			$this->_violations = array();
			$this->_warnings = array();
		}
	}
28849
public function removeField($name)
    {
        if (isset($this->fields[$name])) {
            unset($this->fields[$name]);
        }

        $this->prepareQuery();

        return $this;
    }
1311986
public function removeProperty($name)
    {
        if ($this->isConnected())
        {
            $column = $this->getTable()->getColumn($name);

            if (isset($column) && $column->required) {
                $this->setProperty($name, $column->default);
            }
            else
            {
                parent::offsetUnset($name);
                unset($this->_modified[$name]);
            }
        }

        return $this;
    }
654390
public function remove($name)
    {
        $name = $this->normalizeName($name);
        if (isset($this->data[$name])) {
            unset($this->data[$name]);
        }

        return $this;
    }
1200466
public function reset()
    {
        $this->builder->resetQueryParts();
        $this->relations = [];
        $this->queryString = null;
        $this->queryParams = [];
        $this->casts = [];
        $this->resetBinds();

        $this->setQuery();
        $this->fields();

        return $this;
    }
259862
public function reset() : self
    {
        $this->where = [];
        $this->joins = [];
        $this->group = [];
        $this->withr = [];
        $this->order = [];
        $this->having = [];
        $this->aliases = [];
        $this->li_of = [0,0,0];
        $this->qiterator = null;
        return $this;
    }
52571
public function dropIndex($name)
    {
        if (strtolower($name) === 'identity') {
            throw new \LogicException('Unable to remove identity.');
        }

        if (strtolower($name) === 'primary') {
            $sql = <<<SQL
DECLARE @table NVARCHAR(512), @sql NVARCHAR(MAX);

SELECT @table = N%q;

SELECT @sql = 'ALTER TABLE ' + @table 
    + ' DROP CONSTRAINT ' + name + ';'
    FROM sys.key_constraints
    WHERE [type] = 'PK'
    AND [parent_object_id] = OBJECT_ID(@table);

EXEC sp_executeSQL @sql;
SQL;

            $this->db->execute(
                $this->db->getQuery(true)->format($sql, $this->db->replacePrefix($this->getName()))
            );

            return $this->reset();
        }

        if (!$this->hasIndex($name)) {
            return $this;
        }

        $this->db->execute(SqlsrvGrammar::build(
            'DROP INDEX',
            $this->db->getQuery(true)
                ->quoteName($this->getName() . '.' . $name)
        ));

        return $this->reset();
    }
1134107
public function deleteColumn($name)
    {
        $index = array_search($name, $this->columns);

        if ($index !== false) {
            unset($this->columns[$index]);
            $this->columns = array_values($this->columns);
        }

        return $this;
    }
1346810
public function reset()
    {
        $this->statement = null;
        $this->params = array();
        $this->positionParams = array();
        $this->query = array();
        $this->sql = null;

        return $this;
    }
589533
public function resetQueryParts($queryPartNames = null)
    {
        if ($queryPartNames === null) {
            $queryPartNames = array_keys($this->sqlParts);
        }

        foreach ($queryPartNames as $queryPartName) {
            $this->resetQueryPart($queryPartName);
        }

        return $this;
    }
239053
public function reset($items = null)
    {
        $this->items = [];
        if ((func_get_args() > 0) && is_array($items)) {
            $this->items = $items;
        }
        return $this;
    }
329882
public function forget(string $name) : self
    {
        foreach ($this->tags as $key => $tag) {
            if ($tag->name == $name) {
                unset($this->tags[$key]);
            }
        }

        return $this;
    }
983646
public function removeAuthItem($name)
	{
		if($this->usingSqlite())
		{
			$this->db->createCommand()
				->delete($this->itemChildTable, 'parent=:name1 OR child=:name2', array(
					':name1'=>$name,
					':name2'=>$name
			));
			$this->db->createCommand()
				->delete($this->assignmentTable, 'itemname=:name', array(
					':name'=>$name,
			));
		}

		return $this->db->createCommand()
			->delete($this->itemTable, 'name=:name', array(
				':name'=>$name
			)) > 0;
	}
19989
final public function reset(array $modified = array())
    {
        $context = $this->getContext();
        $context->modified = $modified;

        if ($this->invokeCommand('before.reset', $context) !== false)
        {
            $this->_actionReset($context);
            $this->invokeCommand('after.reset', $context);
        }

        return $this;
    }
847041
public function resetQuery()
    {
        $this->_field_list = array(self::DEFAULT_FIELD);
        $this->_param_list = array();
        $this->_limit      = array(self::DEFAULT_LIMIT);
        $this->_where_list = array();

        return $this;
    }