[−][src]Struct rustorm::table::Table
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 safe_name(&self) -> String
[src]
pub fn safe_name(&self) -> String
pub fn safe_complete_name(&self) -> String
[src]
pub fn safe_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 Clone for Table
[src]
impl Clone for Table
fn clone(&self) -> Table
[src]
fn clone(&self) -> Table
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq<Table> for Table
[src]
impl PartialEq<Table> for Table
impl Debug for Table
[src]
impl Debug for Table
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T