protected override IIndex CreateItem(string name) { var command = new AlterIndexCommand(_command, name); _command.Add(command); return(new ExistingIndex(command)); }
public override IASTNode VisitAlterIndex(SqlServerCommandParser.AlterIndexContext context) { AlterIndexCommand result = new AlterIndexCommand(); if (null != context.indexName()) { result.Index = (IndexSegment)Visit(context.indexName()); } result.Table = (SimpleTableSegment)Visit(context.tableName()); return(result); }
public ExistingIndex(AlterIndexCommand command) { _command = command; }