C# Class Rsdn.Janus.Jet.JetSchemaDriver

Inheritance: DBSchemaDriverBase
Exibir arquivo Open project: rsdn/janus

Public Methods

Method Description
ConvertToDbParameter ( TableColumnSchema column, IDbDataParameter parameter ) : IDbDataParameter
CreateConnection ( string connStr ) : IDbConnection
CreateDatabase ( string constr ) : void
LoadExistingSchema ( string connStr ) : DBSchema

Создать схему метаданных из исходной базы

Protected Methods

Method Description
AfterSchemaComparision ( DBSchema existingSchema, DBSchema targetSchema ) : void
CheckIndexTypeForRecreate ( IndexSchema eIndex ) : bool
CheckKeyTypeForRecreate ( KeySchema eKey ) : bool
DbscCopyPrepare ( DBSchema schema ) : DBSchema
ExecuteDdlCommands ( IEnumerable commands, string connStr ) : void
MakeDdlColumnAlter ( TableColumnSchema mColumn, TableColumnSchema eColumn, TableSchema table ) : string
MakeDdlIndexCreate ( IndexSchema eindex, TableSchema etable ) : string
MakeParameterName ( TableColumnSchema column ) : string
ParseColumn ( TableColumnSchema ecolumn ) : string
ParseColumnAlter ( TableColumnSchema mColumn, TableColumnSchema eColumn ) : string
WriteDdlCommands ( TextWriter wr, IEnumerable commands ) : void

Method Details

AfterSchemaComparision() protected method

protected AfterSchemaComparision ( DBSchema existingSchema, DBSchema targetSchema ) : void
existingSchema DBSchema
targetSchema DBSchema
return void

CheckIndexTypeForRecreate() protected method

protected CheckIndexTypeForRecreate ( IndexSchema eIndex ) : bool
eIndex IndexSchema
return bool

CheckKeyTypeForRecreate() protected method

protected CheckKeyTypeForRecreate ( KeySchema eKey ) : bool
eKey KeySchema
return bool

ConvertToDbParameter() public method

public ConvertToDbParameter ( TableColumnSchema column, IDbDataParameter parameter ) : IDbDataParameter
column TableColumnSchema
parameter IDbDataParameter
return IDbDataParameter

CreateConnection() public method

public CreateConnection ( string connStr ) : IDbConnection
connStr string
return IDbConnection

CreateDatabase() public method

public CreateDatabase ( string constr ) : void
constr string
return void

DbscCopyPrepare() protected method

protected DbscCopyPrepare ( DBSchema schema ) : DBSchema
schema DBSchema
return DBSchema

ExecuteDdlCommands() protected method

protected ExecuteDdlCommands ( IEnumerable commands, string connStr ) : void
commands IEnumerable
connStr string
return void

LoadExistingSchema() public method

Создать схему метаданных из исходной базы
public LoadExistingSchema ( string connStr ) : DBSchema
connStr string
return DBSchema

MakeDdlColumnAlter() protected method

protected MakeDdlColumnAlter ( TableColumnSchema mColumn, TableColumnSchema eColumn, TableSchema table ) : string
mColumn TableColumnSchema
eColumn TableColumnSchema
table TableSchema
return string

MakeDdlIndexCreate() protected method

protected MakeDdlIndexCreate ( IndexSchema eindex, TableSchema etable ) : string
eindex IndexSchema
etable TableSchema
return string

MakeParameterName() protected method

protected MakeParameterName ( TableColumnSchema column ) : string
column TableColumnSchema
return string

ParseColumn() protected method

protected ParseColumn ( TableColumnSchema ecolumn ) : string
ecolumn TableColumnSchema
return string

ParseColumnAlter() protected method

protected ParseColumnAlter ( TableColumnSchema mColumn, TableColumnSchema eColumn ) : string
mColumn TableColumnSchema
eColumn TableColumnSchema
return string

WriteDdlCommands() protected method

protected WriteDdlCommands ( TextWriter wr, IEnumerable commands ) : void
wr System.IO.TextWriter
commands IEnumerable
return void