Class PostgreSQLMigrationGenerator
- Namespace
- The.PostgreSQL.Schema
- Assembly
- Instagile.PostgreSQL.dll
Generates PostgreSQL DDL migrations from model events. Wraps the generic MigrationGenerator with PostgreSQL-specific state and dialect.
public class PostgreSQLMigrationGenerator : MigrationGenerator
- Inheritance
-
PostgreSQLMigrationGenerator
- Inherited Members
Constructors
PostgreSQLMigrationGenerator(params IEvent[])
public PostgreSQLMigrationGenerator(params IEvent[] history)
Parameters
historyIEvent[]
Methods
GenerateDDL(IEnumerable<IEvent>)
Add events to the current migration and emit SQL
public override IReadOnlyList<string> GenerateDDL(IEnumerable<IEvent> es)
Parameters
esIEnumerable<IEvent>
Returns
GenerateTriggers()
Emit trigger SQL which should be executed before and after a migration's DDL
public override (IReadOnlyList<IReadOnlyList<string>> before, IReadOnlyList<IReadOnlyList<string>> after) GenerateTriggers()
Returns
GetDialect()
public override IDDLDialect GetDialect()
Returns
InitialSetup()
When iterated, emit rerunnable db-setup scripts
public override IEnumerable<IEnumerable<string>> InitialSetup()
Returns
SkipDDL(params IEvent[])
Adds some events to the current migration without emitting the corresponding SQL
public override void SkipDDL(params IEvent[] es)
Parameters
esIEvent[]