Skip to content

ITableInfo Interface ​

Definition ​

Represents metadata about a database table, including its primary key and columns.

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

Properties ​

NameDescription
ColumnsGets the list of columns defined in the table
CommentComment / Description about the Table
ConstraintsGets the list of constraints defined for the table (e.g., foreign keys, checks).
EstimatedRowsEstimated number of rows in the table
FillFactorTable storage fill factor (Postgres heap). A value of 0 omits the option (provider default).
ImmutableRowsWhen true, rows are not allowed to be modified after INSERT
IndexesGets the list of indexes defined on the table
NamingStrategyNaming strategy used for this TableInfo object
PrimaryKeyColumnGets the name of the column designated as the table's primary key
PrimaryKeyNameGets the name of the database constraint used as the primary key
TypeClass Type when generated from a class

Methods ​

NameDescription
bool AddColumn(IColumnInfo column)Add a column
bool AddConstraint(Constraint constraint)Adds a table-level constraint (for example a foreign key) and attaches it to the matching column when present.
bool AddIndex(IndexInformation index)Adds a non-primary-key index and attaches it to matching key columns when present.
TableInfo Copy()Ceates a copy of the instance
IReadOnlyList<string> GetColumnNames()Returns a readonly list of the Column names (in ordinal order when known)
byte[] GetHash(HashProvider hash = null)Get Hash of the current instance
IReadOnlyList<string> GetMutableColumnNames()Returns a readonly list of the Column names (in ordinal order when known) that are not marked immutable
IColumnInfo GetPkColumn()Returns the IColumnInfo data for the tables Primary Key
IPredicateNode GetPkPredicate()Returns a predicate node designed to obtain a row by it's primary key
string GetSchemaAndName(IConnection connection)Returns table and schema name delimited by the database connection
bool TryGetColumnInfo(string columnName, out IColumnInfo column)Resolves provided column to it's IColumnInfo using a case insensitive comparater