private void CompareIndexes(TableIndex tableIndex, IndexSchema indexSchema)
        {
            Assert.AreEqual(tableIndex.Name, indexSchema.Name);
            Assert.AreEqual(tableIndex.IsPrimaryKey, indexSchema.IsPrimaryKey);
            Assert.AreEqual(tableIndex.IsUnique, indexSchema.IsUnique);
            Assert.AreEqual(false, indexSchema.IsClustered);
            Assert.AreEqual(tableIndex.Columns.Length, indexSchema.MemberColumns.Count);

            for (int idx = 0; idx < tableIndex.Columns.Length; idx++) {
                Assert.AreEqual(tableIndex.Columns[idx],
                    indexSchema.MemberColumns[idx].Name);
            }
        }
 public TableSpec(String name, TableColumn[] columns, TableIndex[] indexes, ForeignKey[] fkeys)
 {
     Name = name;
     Columns = columns;
     Indexes = indexes;
     ForeignKeys = fkeys;
 }