TableInfo

information about table in DB

Constructors

this
this(DBInfo schema, EntityInfo entity, EntityInfo entity2, JoinTableInfo joinTable)
Undocumented in source.
this
this(DBInfo schema, EntityInfo entity)
Undocumented in source.

Members

Functions

addColumn
void addColumn(ColumnInfo column)
Undocumented in source. Be warned that the author may not have intended to support it.
addForeignKey
void addForeignKey(string thisTable, EntityInfo otherEntity, string columnName, string uniqueIndex)
Undocumented in source. Be warned that the author may not have intended to support it.
addForeignKey
void addForeignKey(PropertyInfo pi)
Undocumented in source. Be warned that the author may not have intended to support it.
addJoinTable
void addJoinTable(PropertyInfo pi)
Undocumented in source. Be warned that the author may not have intended to support it.
addUniqueColumnIndex
void addUniqueColumnIndex(PropertyInfo pi)
Undocumented in source. Be warned that the author may not have intended to support it.
find
ColumnInfo find(string columnName)
Undocumented in source. Be warned that the author may not have intended to support it.
getCreateIndexSQL
string[] getCreateIndexSQL()
Undocumented in source. Be warned that the author may not have intended to support it.
getCreateTableSQL
string getCreateTableSQL()
Undocumented in source. Be warned that the author may not have intended to support it.
getDropIndexSQL
string[] getDropIndexSQL()
Undocumented in source. Be warned that the author may not have intended to support it.
getDropTableSQL
string getDropTableSQL()
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
ColumnInfo opIndex(string columnName)
Undocumented in source. Be warned that the author may not have intended to support it.
references
bool references(bool[string] visitedTables, TableInfo other)
Undocumented in source. Be warned that the author may not have intended to support it.
references
bool references(TableInfo other)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

columnNameMap
ColumnInfo[string] columnNameMap;
Undocumented in source.
columns
ColumnInfo[] columns;
Undocumented in source.
entity
EntityInfo entity;
Undocumented in source.
entity2
EntityInfo entity2;
Undocumented in source.
indexes
IndexInfo[] indexes;
Undocumented in source.
pkDef
string pkDef;
Undocumented in source.
schema
DBInfo schema;
Undocumented in source.
tableName
string tableName;
Undocumented in source.

Meta