You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
556 B
30 lines
556 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Patcher.DB
|
|
{
|
|
class UniqueConstraint : AbstractConstraint
|
|
{
|
|
|
|
public override void Accept(IVisitor visitor)
|
|
{
|
|
visitor.Visit(this);
|
|
}
|
|
|
|
public override T Accept<T>(IVisitor<T> visitor)
|
|
{
|
|
return visitor.Visit(this);
|
|
}
|
|
|
|
public readonly HashSet<string> columns;
|
|
|
|
public UniqueConstraint(string table, string name, HashSet<string> columns)
|
|
: base(table, name)
|
|
{
|
|
this.columns = columns;
|
|
}
|
|
|
|
}
|
|
}
|
|
|