Skip to content

TableDifferences Class ​

Definition ​

Summary of differences between a current (database) table and a future (model) table.

  • Namespace: JASE.Database.Models
  • Assembly: JASE.Database.dll

Constructors ​

NameDescription
TableDifferences(ITableInfo Table, NamingStrategy NamingStrategy, IReadOnlyList<ValueTuple<IColumnInfo, IColumnInfo>> RenameColumns, IReadOnlyList<IColumnInfo> AddColumns, IReadOnlyList<IColumnInfo> DropColumns, IReadOnlyDictionary<IColumnInfo, List<ColumnDefinitionType>> CheckColumns, IReadOnlyList<Constraint> AddForeignKeys, IReadOnlyList<Constraint> DropForeignKeys, IReadOnlyList<IndexInformation> AddIndexes, IReadOnlyList<IndexInformation> DropIndexes, IReadOnlyList<SchemaChangeWarning> Warnings = null, bool ChangeFillFactor = null, IReadOnlyList<IColumnInfoCharacter> AddFtsColumns = null, IReadOnlyList<IColumnInfoCharacter> DropFtsColumns = null)Summary of differences between a current (database) table and a future (model) table.

Properties ​

NameDescription
AddColumnsColumns that should be added to the table
AddForeignKeysForeign keys present on the model but missing in the database
AddFtsColumnsSource character columns that should gain provider FTS specials (Postgres TSVECTOR companion + GIN,
AddIndexesIndexes present on the model but missing in the database
ChangeFillFactorWhen true, apply the model's FillFactor (Postgres)
CheckColumnsColumns where differences were detected
DropColumnsColumns that should be dropped from the table
DropForeignKeysForeign keys present in the database but missing on the model
DropFtsColumnsSource character columns whose provider FTS specials should be removed. Never drops the source column.
DropIndexesIndexes to drop: definition replacements, dependency drops for column removals, and orphans
HasChangesTrue if any read-only collection has elements (i.e., "contains data")
HasWarningsTrue when Warnings contains one or more awareness notices.
NamingStrategy
RenameColumns
TableTable Information
WarningsAwareness notices (for example, indexes dropped only because a column they reference is leaving).