pub struct Table { /* private fields */ }
Expand description
Represents an entire Table, which may be Part of a wider Schema or used standalone.
Can be converted into an SQL Statement via the SQLStatement Methods.
It is an Error for the name
to be empty (Error::EmptyTableName) or the Table itself to be empty (Error::NoColumns).
Implementations§
Source§impl Table
impl Table
pub fn new( name: String, columns: Vec<Column>, without_rowid: bool, strict: bool, ) -> Self
pub fn new_default(name: String) -> Self
pub fn set_name(self, name: String) -> Self
pub fn add_column(self, col: Column) -> Self
pub fn set_without_rowid(self, without_rowid: bool) -> Self
pub fn set_strict(self, strict: bool) -> Self
Trait Implementations§
Source§impl SQLStatement for Table
impl SQLStatement for Table
impl Eq 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