C# Class Rsdn.Janus.Firebird.FBSchemaDriver

Inheritance: DBSchemaDriverBase
Show file Open project: rsdn/janus

Public Methods

Method Description
CreateConnection ( string connStr ) : IDbConnection
CreateDatabase ( string constr ) : void
EndTableLoad ( IDbConnection connection, TableSchema table ) : void

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
MakeDdlColumnDrop ( TableColumnSchema column, TableSchema table ) : string
MakeDdlElementName ( string name ) : string
MakeDdlIndexCreate ( IndexSchema index, TableSchema table ) : string
MakeDdlIndexDrop ( IndexSchema index, TableSchema table ) : string
ParseColumn ( TableColumnSchema column ) : string
WriteDdlCommands ( TextWriter wr, IEnumerable commands ) : void

Private Methods

Method Description
MakeDdlGeneratorCreate ( SchemaNamedElement gen ) : string
MakeDdlGeneratorDrop ( SchemaNamedElement gen ) : string
MakeDdlGeneratorSet ( DBGenerator gen ) : string

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

EndTableLoad() public method

public EndTableLoad ( IDbConnection connection, TableSchema table ) : void
connection IDbConnection
table TableSchema
return void

ExecuteDdlCommands() protected method

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

MakeDdlColumnDrop() protected method

protected MakeDdlColumnDrop ( TableColumnSchema column, TableSchema table ) : string
column TableColumnSchema
table TableSchema
return string

MakeDdlElementName() protected method

protected MakeDdlElementName ( string name ) : string
name string
return string

MakeDdlIndexCreate() protected method

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

MakeDdlIndexDrop() protected method

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

ParseColumn() protected method

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

WriteDdlCommands() protected method

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