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

CreateNativeTableSequence() private method

private CreateNativeTableSequence ( ObjectName tableName ) : ISequence
tableName ObjectName
return ISequence
        private ISequence CreateNativeTableSequence(ObjectName tableName)
        {
            var table = Transaction.GetMutableTable(SequenceInfoTableName);
            var uniqueId = Transaction.NextTableId(SequenceInfoTableName);

            var dataRow = table.NewRow();
            dataRow.SetValue(0, Field.Number(uniqueId));
            dataRow.SetValue(1, Field.VarChar(tableName.Parent.FullName));
            dataRow.SetValue(2, Field.VarChar(tableName.Name));
            dataRow.SetValue(3, Field.BigInt(1));
            table.AddRow(dataRow);

            return new Sequence(this, uniqueId, SequenceInfo.Native(tableName));
        }