Struct rustorm::table::Table [−][src]
pub struct Table { pub name: TableName, pub comment: Option<String>, pub columns: Vec<Column>, pub is_view: bool, pub table_key: Vec<TableKey>, }
Fields
name: TableName
comment: Option<String>
comment of this table
columns: Vec<Column>
columns of this table
is_view: bool
views can also be generated
table_key: Vec<TableKey>
Methods
impl Table
[src]
impl Table
pub fn complete_name(&self) -> String
[src]
pub fn complete_name(&self) -> String
pub fn get_primary_column_names(&self) -> Vec<&ColumnName>
[src]
pub fn get_primary_column_names(&self) -> Vec<&ColumnName>
pub fn get_non_primary_columns(&self) -> Vec<&Column>
[src]
pub fn get_non_primary_columns(&self) -> Vec<&Column>
pub fn get_primary_columns(&self) -> Vec<&Column>
[src]
pub fn get_primary_columns(&self) -> Vec<&Column>
pub fn get_primary_column_types(&self) -> Vec<&SqlType>
[src]
pub fn get_primary_column_types(&self) -> Vec<&SqlType>
pub fn get_foreign_keys(&self) -> Vec<&ForeignKey>
[src]
pub fn get_foreign_keys(&self) -> Vec<&ForeignKey>
pub fn get_foreign_key_to_table(
&self,
table_name: &TableName
) -> Option<&ForeignKey>
[src]
pub fn get_foreign_key_to_table(
&self,
table_name: &TableName
) -> Option<&ForeignKey>
pub fn get_local_foreign_columns_pair_to_table(
&self,
table_name: &TableName
) -> Vec<(&ColumnName, &ColumnName)>
[src]
pub fn get_local_foreign_columns_pair_to_table(
&self,
table_name: &TableName
) -> Vec<(&ColumnName, &ColumnName)>
get the (local_columns, foreign_columns) to the table
pub fn get_foreign_column_types_to_table(
&self,
table_name: &TableName
) -> Vec<&SqlType>
[src]
pub fn get_foreign_column_types_to_table(
&self,
table_name: &TableName
) -> Vec<&SqlType>
pub fn get_foreign_column_names_to_table(
&self,
table_name: &TableName
) -> Vec<&ColumnName>
[src]
pub fn get_foreign_column_names_to_table(
&self,
table_name: &TableName
) -> Vec<&ColumnName>
pub fn get_foreign_column_names(&self) -> Vec<&ColumnName>
[src]
pub fn get_foreign_column_names(&self) -> Vec<&ColumnName>
pub fn get_referred_columns_to_table(
&self,
table_name: &TableName
) -> Option<&Vec<ColumnName>>
[src]
pub fn get_referred_columns_to_table(
&self,
table_name: &TableName
) -> Option<&Vec<ColumnName>>
return the local columns of this table that is referred by the argument table name
pub fn get_column(&self, column_name: &ColumnName) -> Option<&Column>
[src]
pub fn get_column(&self, column_name: &ColumnName) -> Option<&Column>
Trait Implementations
impl Debug for Table
[src]
impl Debug for Table
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Table
[src]
impl PartialEq for Table
fn eq(&self, other: &Table) -> bool
[src]
fn eq(&self, other: &Table) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Table) -> bool
[src]
fn ne(&self, other: &Table) -> bool
This method tests for !=
.
impl Clone for Table
[src]
impl Clone for Table