pub struct SqliteDialect;Expand description
SQLite dialect for migration SQL generation.
Implementations§
Source§impl SqliteDialect
impl SqliteDialect
Trait Implementations§
Source§impl Clone for SqliteDialect
impl Clone for SqliteDialect
Source§fn clone(&self) -> SqliteDialect
fn clone(&self) -> SqliteDialect
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 moreSource§impl Debug for SqliteDialect
impl Debug for SqliteDialect
Source§impl Default for SqliteDialect
impl Default for SqliteDialect
Source§fn default() -> SqliteDialect
fn default() -> SqliteDialect
Returns the “default value” for a type. Read more
Source§impl MigrationDialect for SqliteDialect
impl MigrationDialect for SqliteDialect
Source§fn map_data_type(&self, dt: &DataType) -> String
fn map_data_type(&self, dt: &DataType) -> String
Maps a
DataType to the dialect-specific SQL type.Source§fn autoincrement_keyword(&self) -> String
fn autoincrement_keyword(&self) -> String
Returns the AUTOINCREMENT keyword for this dialect.
Source§fn rename_table(&self, op: &RenameTableOp) -> String
fn rename_table(&self, op: &RenameTableOp) -> String
Generates SQL for RENAME TABLE.
Source§fn rename_column(&self, op: &RenameColumnOp) -> String
fn rename_column(&self, op: &RenameColumnOp) -> String
Generates SQL for RENAME COLUMN.
Source§fn alter_column(&self, op: &AlterColumnOp) -> String
fn alter_column(&self, op: &AlterColumnOp) -> String
Generates SQL for ALTER COLUMN.
Source§fn drop_index(&self, op: &DropIndexOp) -> String
fn drop_index(&self, op: &DropIndexOp) -> String
Generates SQL for DROP INDEX.
Source§fn drop_foreign_key(&self, op: &DropForeignKeyOp) -> String
fn drop_foreign_key(&self, op: &DropForeignKeyOp) -> String
Generates SQL for DROP FOREIGN KEY.
Source§fn generate_sql(&self, operation: &Operation) -> String
fn generate_sql(&self, operation: &Operation) -> String
Generates SQL for an operation.
Source§fn create_table(&self, op: &CreateTableOp) -> String
fn create_table(&self, op: &CreateTableOp) -> String
Generates SQL for CREATE TABLE.
Source§fn drop_table(&self, op: &DropTableOp) -> String
fn drop_table(&self, op: &DropTableOp) -> String
Generates SQL for DROP TABLE.
Source§fn add_column(&self, op: &AddColumnOp) -> String
fn add_column(&self, op: &AddColumnOp) -> String
Generates SQL for ADD COLUMN.
Source§fn drop_column(&self, op: &DropColumnOp) -> String
fn drop_column(&self, op: &DropColumnOp) -> String
Generates SQL for DROP COLUMN.
Source§fn create_index(&self, op: &CreateIndexOp) -> String
fn create_index(&self, op: &CreateIndexOp) -> String
Generates SQL for CREATE INDEX.
Source§fn add_foreign_key(&self, op: &AddForeignKeyOp) -> String
fn add_foreign_key(&self, op: &AddForeignKeyOp) -> String
Generates SQL for ADD FOREIGN KEY.
Source§fn column_definition(&self, col: &ColumnDefinition) -> String
fn column_definition(&self, col: &ColumnDefinition) -> String
Generates SQL for a column definition.
Source§fn table_constraint(&self, constraint: &TableConstraint) -> String
fn table_constraint(&self, constraint: &TableConstraint) -> String
Generates SQL for a table constraint.
Source§fn render_default(&self, default: &DefaultValue) -> String
fn render_default(&self, default: &DefaultValue) -> String
Renders a default value.
Source§fn quote_char(&self) -> char
fn quote_char(&self) -> char
Returns the identifier quote character.
Source§fn quote_identifier(&self, name: &str) -> String
fn quote_identifier(&self, name: &str) -> String
Quotes an identifier.
Source§fn index_type_sql(&self, index_type: &IndexType) -> &'static str
fn index_type_sql(&self, index_type: &IndexType) -> &'static str
Maps an index type to SQL.
Source§impl RustTypeMapping for SqliteDialect
impl RustTypeMapping for SqliteDialect
impl Copy for SqliteDialect
Auto Trait Implementations§
impl Freeze for SqliteDialect
impl RefUnwindSafe for SqliteDialect
impl Send for SqliteDialect
impl Sync for SqliteDialect
impl Unpin for SqliteDialect
impl UnwindSafe for SqliteDialect
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