Struct CommentStatement
pub struct CommentStatement { /* private fields */ }Implementations§
§impl CommentStatement
impl CommentStatement
pub fn new(drop: bool) -> Self
pub fn schema<I>(&mut self, name: I) -> &mut Selfwhere
I: IntoIden,
pub fn table<I>(&mut self, name: I) -> &mut Selfwhere
I: IntoIden,
pub fn table<I>(&mut self, name: I) -> &mut Selfwhere
I: IntoIden,
Add a table comment.
use sea_query::{extension::mssql::Comment, tests_cfg::*, *};
assert_eq!(
Comment::add()
.schema(Alias::new("dbo"))
.table(Font::Table)
.comment("The Font Collection.")
.to_string(MsSqlQueryBuilder),
r#"EXEC sp_addextendedproperty 'MS_Description', 'The Font Collection.', 'SCHEMA', 'dbo', 'TABLE', 'font'"#
);pub fn column<I>(&mut self, name: I) -> &mut Selfwhere
I: IntoIden,
pub fn column<I>(&mut self, name: I) -> &mut Selfwhere
I: IntoIden,
Add a column comment.
use sea_query::{extension::mssql::Comment, tests_cfg::*, *};
assert_eq!(
Comment::add()
.schema(Alias::new("dbo"))
.table(Font::Table)
.column(Font::Name)
.comment("Font's name.")
.to_string(MsSqlQueryBuilder),
r#"EXEC sp_addextendedproperty 'MS_Description', 'Font''s name.', 'SCHEMA', 'dbo', 'TABLE', 'font', 'COLUMN', 'name'"#
);pub fn comment<V>(&mut self, value: V) -> &mut Self
pub fn take(&mut self) -> Self
§impl CommentStatement
impl CommentStatement
pub fn build_ref<T: CommentStatementBuilder>(&self, type_builder: &T) -> String
pub fn build_collect<T: CommentStatementBuilder>( &self, type_builder: T, sql: &mut impl SqlWriter, ) -> String
pub fn build_collect_ref<T: CommentStatementBuilder>( &self, type_builder: &T, sql: &mut impl SqlWriter, ) -> String
pub fn to_string<T>(&self, type_builder: T) -> Stringwhere
T: CommentStatementBuilder + QueryBuilder,
pub fn to_string<T>(&self, type_builder: T) -> Stringwhere
T: CommentStatementBuilder + QueryBuilder,
Build corresponding SQL statement and return SQL string
Trait Implementations§
§impl Clone for CommentStatement
impl Clone for CommentStatement
§fn clone(&self) -> CommentStatement
fn clone(&self) -> CommentStatement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommentStatement
impl RefUnwindSafe for CommentStatement
impl Send for CommentStatement
impl Sync for CommentStatement
impl Unpin for CommentStatement
impl UnwindSafe for CommentStatement
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