pub struct SqlServer;Trait Implementations§
impl Copy for SqlServer
Source§impl Dialect for SqlServer
impl Dialect for SqlServer
Source§fn skip_locked(&self) -> (&'static str, &'static str)
fn skip_locked(&self) -> (&'static str, &'static str)
A table hint, which is why this returns two pieces rather than one.
updlock takes the update lock the row is about to need, readpast is
T-SQL’s skip locked, and rowlock stops the engine escalating to a
page or table lock and serialising every worker.
Source§fn quote(&self, identifier: &str) -> String
fn quote(&self, identifier: &str) -> String
Wrap one identifier so a keyword or an unusual name is still valid. Read more
Source§fn placeholder(&self, position: usize) -> String
fn placeholder(&self, position: usize) -> String
The placeholder for the
position-th bound parameter, counting from 1.Source§fn column_type(&self, kind: &ColumnType) -> String
fn column_type(&self, kind: &ColumnType) -> String
The type name for a logical column type.
Source§fn uuid_default(&self) -> Option<&'static str>
fn uuid_default(&self) -> Option<&'static str>
The expression that generates a UUID, when the database has one.
Source§fn returning(&self) -> ReturningStyle
fn returning(&self) -> ReturningStyle
How a generated key comes back from an insert.
Source§fn limit_offset(
&self,
limit: Option<i64>,
offset: Option<i64>,
ordered: bool,
) -> String
fn limit_offset( &self, limit: Option<i64>, offset: Option<i64>, ordered: bool, ) -> String
limit … offset …, in whatever form this database accepts. Read moreSource§fn supports_if_not_exists_table(&self) -> bool
fn supports_if_not_exists_table(&self) -> bool
Whether
create table if not exists is understood.Source§fn booleans_are_integers(&self) -> bool
fn booleans_are_integers(&self) -> bool
Whether a
boolean column really is one. Read moreSource§fn max_identifier_length(&self) -> usize
fn max_identifier_length(&self) -> usize
The longest identifier this database accepts.
Source§fn migrations_table_sql(&self, table: &str) -> String
fn migrations_table_sql(&self, table: &str) -> String
The DDL for the migration tracking table. Read more
Source§fn add_column_clause(&self) -> &'static str
fn add_column_clause(&self) -> &'static str
How a column is added in an
alter table. Read morefn commit_sql(&self) -> &'static str
fn rollback_sql(&self) -> &'static str
fn savepoint_sql(&self, name: &str) -> String
fn rollback_to_savepoint_sql(&self, name: &str) -> String
Source§fn current_schema_expression(&self) -> &'static str
fn current_schema_expression(&self) -> &'static str
The expression naming the schema this connection is working in. Read more
Source§fn list_tables_sql(&self) -> &'static str
fn list_tables_sql(&self) -> &'static str
A query returning one row per table in the current schema, with the name
in the first column. Read more
Source§fn disable_foreign_keys_sql(&self) -> Option<&'static str>
fn disable_foreign_keys_sql(&self) -> Option<&'static str>
Turn off foreign key enforcement while tables are being dropped, so the
order they come back in does not matter.
fn enable_foreign_keys_sql(&self) -> Option<&'static str>
Source§fn supports_if_not_exists_index(&self) -> bool
fn supports_if_not_exists_index(&self) -> bool
Whether
create index if not exists is understood. Read moreSource§fn drop_table_sql(&self, table: &str) -> String
fn drop_table_sql(&self, table: &str) -> String
Drop one table, including anything depending on it.
Auto Trait Implementations§
impl Freeze for SqlServer
impl RefUnwindSafe for SqlServer
impl Send for SqlServer
impl Sync for SqlServer
impl Unpin for SqlServer
impl UnsafeUnpin for SqlServer
impl UnwindSafe for SqlServer
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