Class MySql4Generator
Inheritance
Implements
Inherited Members
Namespace: FluentMigrator.Runner.Generators.MySql
Assembly: FluentMigrator.Runner.MySql.dll
Syntax
public class MySql4Generator : GenericGenerator, IMigrationGenerator
Constructors
MySql4Generator()
Declaration
public MySql4Generator()
MySql4Generator(IColumn, IQuoter, IDescriptionGenerator, IOptions<GeneratorOptions>)
Declaration
protected MySql4Generator(IColumn column, IQuoter quoter, IDescriptionGenerator descriptionGenerator, IOptions<GeneratorOptions> generatorOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| IColumn | column | |
| IQuoter | quoter | |
| IDescriptionGenerator | descriptionGenerator | |
| IOptions<GeneratorOptions> | generatorOptions |
MySql4Generator(MySqlQuoter)
Declaration
public MySql4Generator(MySqlQuoter quoter)
Parameters
| Type | Name | Description |
|---|---|---|
| MySqlQuoter | quoter |
MySql4Generator(MySqlQuoter, IOptions<GeneratorOptions>)
Declaration
public MySql4Generator(MySqlQuoter quoter, IOptions<GeneratorOptions> generatorOptions)
Parameters
| Type | Name | Description |
|---|---|---|
| MySqlQuoter | quoter | |
| IOptions<GeneratorOptions> | generatorOptions |
Properties
AlterColumn
Declaration
public override string AlterColumn { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
DeleteConstraint
Declaration
public override string DeleteConstraint { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
Generate(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
Generate(AlterTableExpression)
Generates a ALTER TABLE SQL statement
Declaration
public override string Generate(AlterTableExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| AlterTableExpression | expression | The expression to create the SQL for |
Returns
| Type | Description |
|---|---|
| string | The generated SQL |
Overrides
Generate(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
Generate(CreateTableExpression)
Outputs a create table string
Declaration
public override string Generate(CreateTableExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| CreateTableExpression | expression |
Returns
| Type | Description |
|---|---|
| string |
Overrides
Generate(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
Generate(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
Generate(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
Generate(DeleteIndexExpression)
Generates an SQL statement to drop an index
Declaration
public override string Generate(DeleteIndexExpression expression)
Parameters
| Type | Name | Description |
|---|---|---|
| DeleteIndexExpression | expression | The expression to create the SQL for |
Returns
| Type | Description |
|---|---|
| string | The generated SQL |
Overrides
Generate(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
Generate(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 |