alter table
@param  string $table
@param  array  $options
@return boolean true for success
971354
public function alterTable($table, $options)
    {
        $table = $this->buildRealTableName($table);
        $sql = $this->getSchema()->getAlterTableSql($table, $options);
        if ($sql) {
            $ret = $this->query($sql);
        }
        return isset($ret) ? $ret : false;
    }
1139711
public function fixTablePrefixForDcMultilingual(string $table, &$columns, array &$options = [])
    {
        if (!$this->container->get('huh.utils.dca')->isDcMultilingual($table)) {
            return $columns;
        }

        if (\is_array($columns)) {
            $fixed = [];

            foreach ($columns as $column) {
                $fixed[] = str_replace($table.'.', 't1.', $column);
            }

            $columns = $fixed;
        } else {
            $columns = str_replace($table.'.', 't1.', $columns);
        }

        if (\is_array($options) && isset($options['order'])) {
            $options['order'] = str_replace($table.'.', 't1.', $options['order']);
        }
    }
176651
public function setTable($table)
    {
        $this->table = $table;

        //for each row
        foreach ($this->data as $row) {
            if (!is_object($row) || !method_exists($row, __FUNCTION__)) {
                continue;
            }

            //let the row handle this
            $row->setTable($table);
        }

        return $this;
    }
1193534
public function insert($table, $attributes = [])
    {
        $this->tableName = $table;
        $this->setAttributes($attributes);

        if ($this->save()) {
            return true;
        } else {
            return false;
        }
    }
331627
public static function create($table, $data, $option = false)
    {
        $db = self::Using(self::$using_dbo_id);
        return $db->create($table, $data, $option);
    }
1140315
public function alterTable($tableDiff)
    {
        $changeSetElt = $this->createChangeSet('alter-table-' . $tableDiff->fromTable->getName());

        $fromTableName = QualifiedName::fromAsset($tableDiff->fromTable);

        $fromTableName = $this->alterTableRenameTable($tableDiff, $fromTableName, $changeSetElt);

        $indexColumns = new IndexColumns($tableDiff->fromTable);

        $this->alterTableAddedColumns($tableDiff, $fromTableName, $indexColumns, $changeSetElt);
        $this->alterTableAddedIndexes($tableDiff, $fromTableName, $indexColumns, $changeSetElt);
        $this->alterTableAddedForeignKeys($tableDiff, $changeSetElt);

        $this->alterTableRenamedColumns($tableDiff, $fromTableName, $changeSetElt);
        $this->alterTableRenamedIndexes($tableDiff, $fromTableName, $changeSetElt);

        foreach ($tableDiff->changedColumns as $column) {
            $this->alterTableChangedColumn($column, $fromTableName, $changeSetElt);
        }

        foreach ($tableDiff->changedIndexes as $index) {
            $this->alterTableChangedIndex($index, $fromTableName, $changeSetElt);
        }

        foreach ($tableDiff->changedForeignKeys as $foreignKey) {
            $this->alterTableChangedForeignKey($foreignKey, $fromTableName, $changeSetElt);
        }

        $this->alterTableRemovedColumns($tableDiff, $fromTableName, $changeSetElt);
        $this->alterTableRemovedIndexes($tableDiff, $fromTableName, $changeSetElt);
        $this->alterTableRemovedForeignKeys($tableDiff, $fromTableName, $changeSetElt);

        $this->root->appendChild($changeSetElt);
    }
456749
public static function Delete ($table_name, array $values = [], array $options = []) {
		return static::GetConnection($options)->delete($table_name, $values, $options);
	}
1161484
protected function modifyColumnFromActiveTable($table, $key, $val, $dbForge, &$status, $active, $current)
    {
        if( $active !== $current )
        {
            $dbForge->modifyColumn($table, [$key => $val]);
            $status = true;
        }
        else
        {
            $status = false;
        }
    }
517851
public function dropTable($table, $ifExists = true)
    {
        $this->queryBuilder->dropTable($table, $ifExists);
        return $this;
    }
1195998
public function table($table = [])
    {
        $tables = $this->prepareNames(func_get_args());
        $this->tables = array_merge($this->tables ?: [], $tables);
        return $this;
    }
998985
public function addIndex($columns, array $options = [])
    {
        $action = AddIndex::build($this->table, $columns, $options);
        $this->actions->addAction($action);

        return $this;
    }
210440
public function createTable($table, $options)
    {
        $table = $this->buildRealTableName($table);
        $sql = $this->getSchema()->getCreateTableSql($table, $options);
        $ret = $this->query($sql);
        return $ret;
    }
583223
public function dropAndCreateTable(Table $table)
    {
        $this->tryMethod('dropTable', $table->getQuotedName($this->_platform));
        $this->createTable($table);
    }
1293942
public function setTableName($table)
    {
        if ($this->sql) {
            if ($this->validateToken($table)) {
                $this->table = $table;
                return true;
            } else {
                throw new SimpleCache_Exception("`$table` is not a valid table name");
            }
        }
        return false;
    }
1062156
def alter_table(table_name, options = {}) #:nodoc:
      table_name = table_name.to_s.downcase
      altered_table_name = "altered_#{table_name}"
      caller = lambda {|definition| yield definition if block_given?}

      transaction do
        # A temporary table might improve performance here, but
        # it doesn't seem to maintain indices across the whole move.
        move_table(table_name, altered_table_name,
          options)
        move_table(altered_table_name, table_name, &caller)
      end
    end
188650
public function insert($table, $rows, $keys = null, $options = []) {
		return $this->object->insert($table, $rows, $keys, $options);
	}
226785
protected function fixTable(
        $table,
        /*# string */ $alias = ''
    )/*# : array */ {
        if (empty($table)) {
            $table = [];
        } elseif (!is_array($table)) {
            $table = empty($alias) ? [$table] : [$table => $alias];
        }
        return $table;
    }