Deveel.Data.Sql.Statements.StringFormatterVisitor.VisitCreateSequence C# (CSharp) Метод

VisitCreateSequence() защищенный Метод

protected VisitCreateSequence ( CreateSequenceStatement statement ) : SqlStatement
statement CreateSequenceStatement
Результат SqlStatement
        protected override SqlStatement VisitCreateSequence(CreateSequenceStatement statement)
        {
            builder.AppendFormat("CREATE SEQUENCE {0}", statement.SequenceName);

            if (statement.StartWith != null)
                builder.AppendFormat(" START WITH {0}", statement.StartWith);
            if (statement.MinValue != null)
                builder.AppendFormat(" MIN VALUE {0}", statement.MinValue);
            if (statement.MaxValue != null)
                builder.AppendFormat(" MAX VALUE {0}", statement.MaxValue);
            if (statement.IncrementBy != null)
                builder.AppendFormat(" INCREMENT BY {0}", statement.IncrementBy);
            if (statement.Cache != null)
                builder.AppendFormat(" CACHE {0}", statement.Cache);
            if (statement.Cycle)
                builder.Append(" CYCLE");

            return base.VisitCreateSequence(statement);
        }