Method | Description | |
---|---|---|
GenerateSchema ( ISource DesiredStructure, ISourceInfo Source ) : IEnumerable |
Generates a list of commands used to modify the source. If it does not exist prior, the commands will create the source from scratch. Otherwise the commands will only add new fields, tables, etc. It does not delete old fields.
|
|
GetSourceStructure ( ISourceInfo Source ) : ISource |
Gets the structure of a source
|
|
PostgreSQLSchemaGenerator ( Utilities Provider, Utilities SourceProvider ) : System |
Constructor
|
|
Setup ( IMapping>.ListMapping |
Sets up the specified database schema
|
|
SourceExists ( string Source, ISourceInfo Info ) : bool |
Checks if a source exists
|
|
StoredProcedureExists ( string StoredProcedure, ISourceInfo Source ) : bool |
Checks if a stored procedure exists
|
|
TableExists ( string Table, ISourceInfo Source ) : bool |
Checks if a table exists
|
|
TriggerExists ( string Trigger, ISourceInfo Source ) : bool |
Checks if a trigger exists
|
|
ViewExists ( string View, ISourceInfo Source ) : bool |
Checks if a view exists
|
Method | Description | |
---|---|---|
BuildCommands ( ISource DesiredStructure, ISource CurrentStructure ) : IEnumerable |
||
Exists ( string Command, string Value, ISourceInfo Source ) : bool | ||
GetAlterFunctionCommand ( Function Function, Function CurrentFunction ) : IEnumerable |
||
GetAlterStoredProcedure ( StoredProcedure StoredProcedure, StoredProcedure CurrentStoredProcedure ) : IEnumerable |
||
GetAlterTableCommand ( Utilities Table, ITable CurrentTable ) : IEnumerable |
||
GetAlterTriggerCommand ( Utilities Table, ITable CurrentTable ) : IEnumerable |
||
GetAlterViewCommand ( View View, View CurrentView ) : IEnumerable |
||
GetForeignKeyCommand ( Utilities Table ) : IEnumerable |
||
GetForeignKeyCommand ( Utilities Table, ITable CurrentTable ) : IEnumerable |
||
GetFunctionCommand ( Function Function ) : IEnumerable |
||
GetStoredProcedure ( StoredProcedure StoredProcedure ) : IEnumerable |
||
GetTableCommand ( Utilities Table ) : IEnumerable |
||
GetTables ( ISourceInfo Source, Database Temp ) : void | ||
GetTriggerCommand ( Utilities Table ) : IEnumerable |
||
GetViewCommand ( View View ) : IEnumerable |
||
SetupAuditTables ( ITable Table ) : ITable | ||
SetupAuditTables ( IDatabase Key, Utilities TempDatabase ) : void | ||
SetupColumns ( Utilities Table, IEnumerable |
||
SetupDeleteTrigger ( ITable Table ) : void | ||
SetupFunctions ( ISourceInfo Source, Database Temp ) : void | ||
SetupInsertUpdateTrigger ( ITable Table ) : void | ||
SetupJoiningTables ( IMapping>.ListMapping |
||
SetupJoiningTablesEnumerable ( IMapping>.ListMapping |
||
SetupProperties ( ITable Table, IMapping Mapping ) : void | ||
SetupStoredProcedures ( ISourceInfo Source, Database Temp ) : void | ||
SetupTables ( ISourceInfo Source, Database Temp ) : void | ||
SetupTables ( IMapping>.ListMapping |
||
SetupTriggers ( ISourceInfo Source, Utilities Table, IEnumerable |
||
SetupViews ( ISourceInfo Source, Database Temp ) : void |
public GenerateSchema ( ISource DesiredStructure, ISourceInfo Source ) : IEnumerable |
||
DesiredStructure | ISource | Desired source structure |
Source | ISourceInfo | Source to use |
return | IEnumerable |
public GetSourceStructure ( ISourceInfo Source ) : ISource | ||
Source | ISourceInfo | Source to use |
return | ISource |
public PostgreSQLSchemaGenerator ( Utilities Provider, Utilities SourceProvider ) : System | ||
Provider | Utilities | |
SourceProvider | Utilities | |
return | System |
public Setup ( IMapping>.ListMapping |
||
Mappings | IMapping>.ListMapping | The mappings. |
Database | IDatabase | The database. |
QueryProvider | Utilities | The query provider. |
Structure | Graph |
|
return | void |
public SourceExists ( string Source, ISourceInfo Info ) : bool | ||
Source | string | Source to check |
Info | ISourceInfo | Source info to use |
return | bool |
public StoredProcedureExists ( string StoredProcedure, ISourceInfo Source ) : bool | ||
StoredProcedure | string | Stored procedure to check |
Source | ISourceInfo | Source to use |
return | bool |
public TableExists ( string Table, ISourceInfo Source ) : bool | ||
Table | string | Table to check |
Source | ISourceInfo | Source to use |
return | bool |
public TriggerExists ( string Trigger, ISourceInfo Source ) : bool | ||
Trigger | string | Trigger to check |
Source | ISourceInfo | Source to use |
return | bool |
public ViewExists ( string View, ISourceInfo Source ) : bool | ||
View | string | View to check |
Source | ISourceInfo | Source to use |
return | bool |