Search Results for

    Show / Hide Table of Contents

    Class MySql4Generator

    Inheritance
    object
    GeneratorBase
    GenericGenerator
    MySql4Generator
    MySql5Generator
    MySql5Generator
    Implements
    IMigrationGenerator
    Inherited Members
    GenericGenerator.compatabilityMode
    GenericGenerator.CompatibilityMode
    GenericGenerator.CreateTable
    GenericGenerator.DropTable
    GenericGenerator.AddColumn
    GenericGenerator.DropColumn
    GenericGenerator.RenameColumn
    GenericGenerator.RenameTable
    GenericGenerator.CreateSchema
    GenericGenerator.AlterSchema
    GenericGenerator.DropSchema
    GenericGenerator.CreateIndex
    GenericGenerator.DropIndex
    GenericGenerator.InsertData
    GenericGenerator.UpdateData
    GenericGenerator.DeleteData
    GenericGenerator.CreateConstraint
    GenericGenerator.CreateForeignKeyConstraint
    GenericGenerator.GetUniqueString(CreateIndexExpression)
    GenericGenerator.GetClusterTypeString(CreateIndexExpression)
    GenericGenerator.Generate(DeleteTableExpression)
    GenericGenerator.Generate(RenameTableExpression)
    GenericGenerator.Generate(CreateColumnExpression)
    GenericGenerator.Generate(AlterColumnExpression)
    GenericGenerator.Generate(DeleteColumnExpression)
    GenericGenerator.Generate(CreateIndexExpression)
    GenericGenerator.Generate(CreateForeignKeyExpression)
    GenericGenerator.Generate(CreateConstraintExpression)
    GenericGenerator.GenerateForeignKeyName(ForeignKeyDefinition)
    GenericGenerator.Generate(InsertDataExpression)
    GenericGenerator.AppendSqlStatementEndToken(StringBuilder)
    GenericGenerator.GenerateColumnNamesAndValues(InsertDataExpression)
    GenericGenerator.ValidateAdditionalFeatureCompatibility(IEnumerable<KeyValuePair<string, object>>)
    GenericGenerator.Generate(UpdateDataExpression)
    GenericGenerator.Generate(DeleteDataExpression)
    GenericGenerator.Generate(CreateSchemaExpression)
    GenericGenerator.Generate(DeleteSchemaExpression)
    GenericGenerator.Generate(AlterSchemaExpression)
    GeneratorBase.IsAdditionalFeatureSupported(string)
    GeneratorBase.Column
    GeneratorBase.Quoter
    GeneratorBase.DescriptionGenerator
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Runner.Generators.MySql
    Assembly: FluentMigrator.Runner.MySql.dll
    Syntax
    public class MySql4Generator : GenericGenerator, IMigrationGenerator

    Constructors

    | Edit this page View Source

    MySql4Generator()

    Declaration
    public MySql4Generator()
    | Edit this page View Source

    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
    | Edit this page View Source

    MySql4Generator(MySqlQuoter)

    Declaration
    public MySql4Generator(MySqlQuoter quoter)
    Parameters
    Type Name Description
    MySqlQuoter quoter
    | Edit this page View Source

    MySql4Generator(MySqlQuoter, IOptions<GeneratorOptions>)

    Declaration
    public MySql4Generator(MySqlQuoter quoter, IOptions<GeneratorOptions> generatorOptions)
    Parameters
    Type Name Description
    MySqlQuoter quoter
    IOptions<GeneratorOptions> generatorOptions

    Properties

    | Edit this page View Source

    AlterColumn

    Declaration
    public override string AlterColumn { get; }
    Property Value
    Type Description
    string
    Overrides
    GenericGenerator.AlterColumn
    | Edit this page View Source

    DeleteConstraint

    Declaration
    public override string DeleteConstraint { get; }
    Property Value
    Type Description
    string
    Overrides
    GenericGenerator.DeleteConstraint

    Methods

    | Edit this page View Source

    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
    GeneratorBase.Generate(AlterDefaultConstraintExpression)
    | Edit this page View Source

    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
    GeneratorBase.Generate(AlterTableExpression)
    | Edit this page View Source

    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
    GenericGenerator.Generate(CreateSequenceExpression)
    | Edit this page View Source

    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
    GenericGenerator.Generate(CreateTableExpression)
    | Edit this page View Source

    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
    GenericGenerator.Generate(DeleteConstraintExpression)
    | Edit this page View Source

    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
    GeneratorBase.Generate(DeleteDefaultConstraintExpression)
    | Edit this page View Source

    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
    GenericGenerator.Generate(DeleteForeignKeyExpression)
    | Edit this page View Source

    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
    GenericGenerator.Generate(DeleteIndexExpression)
    | Edit this page View Source

    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
    GenericGenerator.Generate(DeleteSequenceExpression)
    | Edit this page View Source

    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

    Overrides
    GenericGenerator.Generate(RenameColumnExpression)

    Implements

    IMigrationGenerator
    • Edit this page
    • View Source
    In this article
    • Constructors
      • MySql4Generator()
      • MySql4Generator(IColumn, IQuoter, IDescriptionGenerator, IOptions<GeneratorOptions>)
      • MySql4Generator(MySqlQuoter)
      • MySql4Generator(MySqlQuoter, IOptions<GeneratorOptions>)
    • Properties
      • AlterColumn
      • DeleteConstraint
    • Methods
      • Generate(AlterDefaultConstraintExpression)
      • Generate(AlterTableExpression)
      • Generate(CreateSequenceExpression)
      • Generate(CreateTableExpression)
      • Generate(DeleteConstraintExpression)
      • Generate(DeleteDefaultConstraintExpression)
      • Generate(DeleteForeignKeyExpression)
      • Generate(DeleteIndexExpression)
      • Generate(DeleteSequenceExpression)
      • Generate(RenameColumnExpression)
    • Implements
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.