C# Class Migrator.Providers.Mysql.MySqlTransformationProvider

MySql transformation provider
Inheritance: TransformationProvider
Mostrar archivo Open project: nats/migratordotnet Class Usage Examples

Public Methods

Method Description
AddTable ( string name ) : void
AddTable ( string name, string engine, string columns ) : void
ChangeColumn ( string table, string sqlColumn ) : void
ConstraintExists ( string table, string name ) : bool
GetColumns ( string table ) : Migrator.Framework.Column[]
GetTables ( ) : string[]
IndexExists ( string table, string name ) : bool
MySqlTransformationProvider ( Migrator.Framework.Dialect dialect, string connectionString ) : System
PrimaryKeyExists ( string table, string name ) : bool
RemoveConstraint ( string table, string name ) : void
RemoveForeignKey ( string table, string name ) : void
RemoveIndex ( string table, string name ) : void
RenameColumn ( string tableName, string oldColumnName, string newColumnName ) : void

Method Details

AddTable() public method

public AddTable ( string name ) : void
name string
return void

AddTable() public method

public AddTable ( string name, string engine, string columns ) : void
name string
engine string
columns string
return void

ChangeColumn() public method

public ChangeColumn ( string table, string sqlColumn ) : void
table string
sqlColumn string
return void

ConstraintExists() public method

public ConstraintExists ( string table, string name ) : bool
table string
name string
return bool

GetColumns() public method

public GetColumns ( string table ) : Migrator.Framework.Column[]
table string
return Migrator.Framework.Column[]

GetTables() public method

public GetTables ( ) : string[]
return string[]

IndexExists() public method

public IndexExists ( string table, string name ) : bool
table string
name string
return bool

MySqlTransformationProvider() public method

public MySqlTransformationProvider ( Migrator.Framework.Dialect dialect, string connectionString ) : System
dialect Migrator.Framework.Dialect
connectionString string
return System

PrimaryKeyExists() public method

public PrimaryKeyExists ( string table, string name ) : bool
table string
name string
return bool

RemoveConstraint() public method

public RemoveConstraint ( string table, string name ) : void
table string
name string
return void

RemoveForeignKey() public method

public RemoveForeignKey ( string table, string name ) : void
table string
name string
return void

RemoveIndex() public method

public RemoveIndex ( string table, string name ) : void
table string
name string
return void

RenameColumn() public method

public RenameColumn ( string tableName, string oldColumnName, string newColumnName ) : void
tableName string
oldColumnName string
newColumnName string
return void