Class SQLiteGenerator
Implements
Inherited Members
Namespace: FluentMigrator.Runner.Generators.SQLite
Assembly: FluentMigrator.Runner.SQLite.dll
Syntax
public class SQLiteGenerator : GenericGenerator, IMigrationGenerator
Constructors
| Edit this page View SourceSQLiteGenerator()
Declaration
public SQLiteGenerator()
SQLiteGenerator(SQLiteQuoter)
Declaration
public SQLiteGenerator(SQLiteQuoter quoter)
Parameters
Type | Name | Description |
---|---|---|
SQLiteQuoter | quoter |
SQLiteGenerator(SQLiteQuoter, IOptions<GeneratorOptions>)
Declaration
public SQLiteGenerator(SQLiteQuoter quoter, IOptions<GeneratorOptions> generatorOptions)
Parameters
Type | Name | Description |
---|---|---|
SQLiteQuoter | quoter | |
IOptions<GeneratorOptions> | generatorOptions |
Properties
| Edit this page View SourceRenameColumn
Declaration
public override string RenameColumn { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
| Edit this page View SourceRenameTable
Declaration
public override string RenameTable { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
| Edit this page View SourceGenerate(AlterColumnExpression)
Generates a ALTER TABLE ALTER COLUMN
SQL statement
Declaration
public override string Generate(AlterColumnExpression expression)
Parameters
Type | Name | Description |
---|---|---|
AlterColumnExpression | expression | The expression to create the SQL for |
Returns
Type | Description |
---|---|
string | The generated SQL |
Overrides
| Edit this page View SourceGenerate(AlterDefaultConstraintExpression)
Generates an SQL statement to alter a DEFAULT constraint
Declaration
public override string Generate(AlterDefaultConstraintExpression expression)
Parameters
Type | Name | Description |
---|---|---|
AlterDefaultConstraintExpression | expression | The expression to create the SQL for |
Returns
Type | Description |
---|---|
string | The generated SQL |
Overrides
| Edit this page View SourceGenerate(CreateConstraintExpression)
Generates an SQL statement to create a constraint
Declaration
public override string Generate(CreateConstraintExpression expression)
Parameters
Type | Name | Description |
---|---|---|
CreateConstraintExpression | expression | The expression to create the SQL for |
Returns
Type | Description |
---|---|
string | The generated SQL |
Overrides
| Edit this page View SourceGenerate(CreateForeignKeyExpression)
Generates an SQL statement to create a foreign key
Declaration
public override string Generate(CreateForeignKeyExpression expression)
Parameters
Type | Name | Description |
---|---|---|
CreateForeignKeyExpression | expression | The expression to create the SQL for |
Returns
Type | Description |
---|---|
string | The generated SQL |
Overrides
| Edit this page View SourceGenerate(CreateSequenceExpression)
Generates a CREATE SEQUENCE
SQL statement
Declaration
public override string Generate(CreateSequenceExpression expression)
Parameters
Type | Name | Description |
---|---|---|
CreateSequenceExpression | expression | The expression to create the SQL for |
Returns
Type | Description |
---|---|
string | The generated SQL |
Overrides
| Edit this page View SourceGenerate(DeleteColumnExpression)
Generates a ALTER TABLE DROP COLUMN
SQL statement
Declaration
public override string Generate(DeleteColumnExpression expression)
Parameters
Type | Name | Description |
---|---|---|
DeleteColumnExpression | expression | The expression to create the SQL for |
Returns
Type | Description |
---|---|
string | The generated SQL |
Overrides
| Edit this page View SourceGenerate(DeleteConstraintExpression)
Generates an SQL statement to drop a constraint
Declaration
public override string Generate(DeleteConstraintExpression expression)
Parameters
Type | Name | Description |
---|---|---|
DeleteConstraintExpression | expression | The expression to create the SQL for |
Returns
Type | Description |
---|---|
string | The generated SQL |
Overrides
| Edit this page View SourceGenerate(DeleteDefaultConstraintExpression)
Generates an SQL statement to drop a default constraint
Declaration
public override string Generate(DeleteDefaultConstraintExpression expression)
Parameters
Type | Name | Description |
---|---|---|
DeleteDefaultConstraintExpression | expression | The expression to create the SQL for |
Returns
Type | Description |
---|---|
string | The generated SQL |
Overrides
| Edit this page View SourceGenerate(DeleteForeignKeyExpression)
Generates an SQL statement to delete a foreign key
Declaration
public override string Generate(DeleteForeignKeyExpression expression)
Parameters
Type | Name | Description |
---|---|---|
DeleteForeignKeyExpression | expression | The expression to create the SQL for |
Returns
Type | Description |
---|---|
string | The generated SQL |
Overrides
| Edit this page View SourceGenerate(DeleteSequenceExpression)
Generates a DROP SEQUENCE
SQL statement
Declaration
public override string Generate(DeleteSequenceExpression expression)
Parameters
Type | Name | Description |
---|---|---|
DeleteSequenceExpression | expression | The expression to create the SQL for |
Returns
Type | Description |
---|---|
string | The generated SQL |
Overrides
| Edit this page View SourceGenerate(RenameColumnExpression)
Generates an SQL statement to rename a column
Declaration
public override string Generate(RenameColumnExpression expression)
Parameters
Type | Name | Description |
---|---|---|
RenameColumnExpression | expression | The expression to create the SQL for |
Returns
Type | Description |
---|---|
string | The generated SQL |