Beispiel #1
0
        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);
        }
Beispiel #3
0
 public ExistingIndex(AlterIndexCommand command)
 {
     _command = command;
 }