Deveel.Data.Sql.Sequences.SequenceManager.DropSequence C# (CSharp) Method

DropSequence() public method

public DropSequence ( ObjectName sequenceName ) : bool
sequenceName ObjectName
return bool
        public bool DropSequence(ObjectName sequenceName)
        {
            // If the Sequence or SequenceInfo tables don't exist then
            // we can't create the sequence sequence
            if (!Transaction.ObjectExists(SequenceTableName) ||
                !Transaction.ObjectExists(SequenceInfoTableName)) {
                throw new Exception("System sequence tables do not exist.");
            }

            try {
                // Remove the table sequence (delete SEQUENCE_INFO and SEQUENCE entry)
                return RemoveNativeTableSequence(sequenceName);
            } finally {
                seqCache.Clear();
            }
        }