C# Class Rsdn.Janus.Sqlite.SqliteSchemaDriver

Inheritance: DBSchemaDriverBase
Datei anzeigen Open project: rsdn/janus

Public Methods

Method Description
CreateConnection ( string connStr ) : IDbConnection
CreateDatabase ( string constr ) : void
LoadExistingSchema ( string connStr ) : DBSchema

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

SqliteSchemaDriver ( IServiceProvider serviceProvider ) : System

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
MakeDdlIndexCreate ( IndexSchema index, TableSchema table ) : string
MakeDdlIndexDrop ( IndexSchema eIndex, TableSchema etable ) : string
MakeDdlTableCreate ( TableSchema table, bool withConstraint ) : 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

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

MakeDdlIndexCreate() protected method

protected MakeDdlIndexCreate ( IndexSchema index, TableSchema table ) : string
index IndexSchema
table TableSchema
return string

MakeDdlIndexDrop() protected method

protected MakeDdlIndexDrop ( IndexSchema eIndex, TableSchema etable ) : string
eIndex IndexSchema
etable TableSchema
return string

MakeDdlTableCreate() protected method

protected MakeDdlTableCreate ( TableSchema table, bool withConstraint ) : string
table TableSchema
withConstraint bool
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

SqliteSchemaDriver() public method

public SqliteSchemaDriver ( IServiceProvider serviceProvider ) : System
serviceProvider IServiceProvider
return System

WriteDdlCommands() protected method

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