pub struct Table {
pub name: String,
pub alias: Option<String>,
pub schema: Option<String>,
}
Expand description
Table Definition
Fields§
§name: String
Table name
alias: Option<String>
Optional table name alias
schema: Option<String>
Optional schema/database name
Implementations§
Source§impl Table
impl Table
pub fn table_list(i: &str) -> IResult<&str, Vec<Table>, ParseSQLError<&str>>
pub fn schema_table_reference( i: &str, ) -> IResult<&str, Table, ParseSQLError<&str>>
pub fn table_reference(i: &str) -> IResult<&str, Table, ParseSQLError<&str>>
Sourcepub fn without_alias(i: &str) -> IResult<&str, Table, ParseSQLError<&str>>
pub fn without_alias(i: &str) -> IResult<&str, Table, ParseSQLError<&str>>
table alias not allowed in DROP/TRUNCATE/RENAME TABLE statement
Sourcepub fn schema_table_reference_to_schema_table_reference(
i: &str,
) -> IResult<&str, (Table, Table), ParseSQLError<&str>>
pub fn schema_table_reference_to_schema_table_reference( i: &str, ) -> IResult<&str, (Table, Table), ParseSQLError<&str>>
db_name.tb_name TO db_name.tb_name
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Table
impl<'de> Deserialize<'de> for Table
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Table
impl StructuralPartialEq for Table
Auto Trait Implementations§
impl Freeze for Table
impl RefUnwindSafe for Table
impl Send for Table
impl Sync for Table
impl Unpin for Table
impl UnwindSafe for Table
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more