Add a table as part.
@param _tableName    name of the table
@param _tableIndex    index of the table
@return this
543721
public SQLSelect addTablePart(final String _tableName,
                                  final Integer _tableIndex)
    {
        parts.add(new FromTable(tablePrefix, _tableName, _tableIndex));
        return this;
    }
1262669
public List<Table> asTableList() {
        List<Table> tableList = new ArrayList<>();
        for (TableSlice view : this) {
            tableList.add(view.asTable());
        }
        return tableList;
    }
1163498
public function setTableName($tableName)
    {
        $this->tableName = $tableName;
        $this->setPrefix($this->generatePrefix($tableName));
        return $this;
    }
813630
public function addAllTables()
    {
        $result = $this->query('SHOW TABLES');

        foreach ($result as $row)
        {
            $this->addTable($row[0]);
        }

        return $this;
    }
837827
public function addTable($table)
    {
        if (!in_array($table, $this->tables))
        {
            $this->tables[] = $table;
        }

        return $this;
    }
729023
public static function buildTableMap()
    {
        $dbMap = Propel::getServiceContainer()->getDatabaseMap(IndexEngineIndexVersionTableMap::DATABASE_NAME);
        if (!$dbMap->hasTable(IndexEngineIndexVersionTableMap::TABLE_NAME)) {
            $dbMap->addTableObject(new IndexEngineIndexVersionTableMap());
        }
    }
198712
public IndexModel index() {
		checkReadOnly();
		IndexModel index = new IndexModel();
		index.setTableModel(this);
		getIndexConsts().add(index);
		return index;
	}
14341
def indexes(table, stream)
        if (indexes = @connection.indexes(table)).any?
          add_index_statements = indexes.map do |index|
            table_name = remove_prefix_and_suffix(index.table).inspect
            "  add_index #{([table_name] + index_parts(index)).join(', ')}"
          end

          stream.puts add_index_statements.sort.join("\n")
          stream.puts
        end
      end
1114151
public function addFrom($table, $alias = null)
    {
        if ($alias) {
            $this->_tables[$alias] = $table;
        } else {
            $this->_tables[] = $table;
        }

        return $this;
    }
69048
@TimerJ
    public TableMetadataBuilder addIndex(IndexMetadata indexMetadata) {
        indexes.put(indexMetadata.getName(), indexMetadata);
        return this;
    }
249779
private void addColumnFamilyToTable(String tableName, String columnFamilyName) throws IOException
    {
        HColumnDescriptor cfDesciptor = new HColumnDescriptor(columnFamilyName);

        try
        {
            if (admin.tableExists(tableName))
            {

                // Before any modification to table schema, it's necessary to
                // disable it
                if (!admin.isTableEnabled(tableName))
                {
                    admin.enableTable(tableName);
                }
                HTableDescriptor descriptor = admin.getTableDescriptor(tableName.getBytes());
                boolean found = false;
                for (HColumnDescriptor hColumnDescriptor : descriptor.getColumnFamilies())
                {
                    if (hColumnDescriptor.getNameAsString().equalsIgnoreCase(columnFamilyName))
                        found = true;
                }
                if (!found)
                {

                    if (admin.isTableEnabled(tableName))
                    {
                        admin.disableTable(tableName);
                    }

                    admin.addColumn(tableName, cfDesciptor);

                    // Enable table once done
                    admin.enableTable(tableName);
                }
            }
            else
            {
                log.warn("Table {} doesn't exist, so no question of adding column family {} to it!", tableName,
                        columnFamilyName);
            }
        }
        catch (IOException e)
        {
            log.error("Error while adding column family {}, to table{} . ", columnFamilyName, tableName);
            throw e;
        }
    }
1220968
public function add(string $name, Table $table)
    {
        $this->tables[$name] = $table;

        return $this;
    }
51324
public boolean add(String table, Cell c) {
        if (StringUtils.isEmpty(table)) {
            throw new IllegalArgumentException("table name cannot be null");
        }

        if (c == null) {
            throw new DeepGenericException(new IllegalArgumentException("cell parameter cannot be null"));
        }

        return getCellsByTable(table).add(c);
    }
1287017
final public function addIndex(Index $index): Table
    {
        if ($this->hasIndex($index::getName())) {
            throw new InvalidArgumentException('Foreign key '.$index::getName().' already exists in the table '.$this::getName());
        }

        $this->indexes[$index::getName()] = $index;

        return $this;
    }
1355325
public void addRow(int rowIndex, Table sourceTable) {
        for (int i = 0; i < columnCount(); i++) {
            column(i).appendObj(sourceTable.column(i).get(rowIndex));
        }
    }
302095
function (tableName, index) {
            var indexName = this.__quoteIdentifier(index.name || this.__defaultIndexName(tableName,
                index.columns)), t = index.type, using = "";
            var indexType = "";
            if (t === "fullText") {
                indexType = "FULLTEXT ";
            } else if (t === "spatial") {
                indexType = "SPATIAL ";
            } else {
                indexType = index.unique ? "UNIQUE " : "";
                using = t ? " USING " + t : "";
            }
            return format("CREATE %sINDEX %s%s ON %s %s", indexType, indexName, using,
                this.__quoteSchemaTable(tableName), this.literal(index.columns.map(function (c) {
                    return isString(c) ? sql.identifier(c) : c;
                })));
        }
1045965
public static Index index(String keyspace, String table, String name) {
        return new Index(table, name).keyspace(keyspace);
    }