C# Class Zetbox.API.Migration.MigrationTasksBase

Inheritance: IMigrationTasks
显示文件 Open project: daszat/zetbox

Public Methods

Method Description
CleanDestination ( SourceTable tbl ) : void
CleanDestination ( TableRef tbl ) : void
ExecuteQueryStreaming ( string sql ) : InputStream
MigrationTasksBase ( IZetboxContext logCtx, ISchemaProvider src, ISchemaProvider dst ) : System
TableBaseMigration ( SourceTable tbl ) : void
TableBaseMigration ( SourceTable tbl, Converter converter, Join additional_joins ) : void
WriteTableStreaming ( TableRef destTable ) : OutputStream

Private Methods

Method Description
CreateJoinComponent ( SourceColumn>.IGrouping referenceGroup, Join>.Dictionary all_joins ) : Join
CreateReferenceJoin ( SourceColumn>.IGrouping referenceGroup, Join>.Dictionary all_joins ) : IEnumerable
CreateReferenceJoin ( SourceColumn>.IGrouping referenceGroup, Join>.Dictionary all_joins ) : IEnumerable
GetColName ( IEnumerable props ) : string

TODO: Use Construct from Generator

GetColName ( System.Property prop ) : string

TODO: Use Construct from Generator

GetDestinationColumnNames ( SourceTable tbl, List srcColumns ) : List
TableBaseComplexMigration ( SourceTable tbl, Converter converter, List mappedColumns, List referringCols, Join additional_joins ) : void
TableBaseSimpleMigration ( SourceTable tbl, Converter nullConverter, List mappedColumns ) : void
WriteLog ( string srcTbl, long srcRows, string dstTbl, long dstRows ) : void

Method Details

CleanDestination() public method

public CleanDestination ( SourceTable tbl ) : void
tbl SourceTable
return void

CleanDestination() public method

public CleanDestination ( TableRef tbl ) : void
tbl TableRef
return void

ExecuteQueryStreaming() public method

public ExecuteQueryStreaming ( string sql ) : InputStream
sql string
return InputStream

MigrationTasksBase() public method

public MigrationTasksBase ( IZetboxContext logCtx, ISchemaProvider src, ISchemaProvider dst ) : System
logCtx IZetboxContext
src ISchemaProvider
dst ISchemaProvider
return System

TableBaseMigration() public method

public TableBaseMigration ( SourceTable tbl ) : void
tbl SourceTable
return void

TableBaseMigration() public method

public TableBaseMigration ( SourceTable tbl, Converter converter, Join additional_joins ) : void
tbl SourceTable
converter Converter
additional_joins Join
return void

WriteTableStreaming() public method

public WriteTableStreaming ( TableRef destTable ) : OutputStream
destTable TableRef
return OutputStream