Table of Contents

Class MigrationGenerator

Namespace
The.SQL.Schema
Assembly
Instagile.dll
public abstract class MigrationGenerator
Inheritance
MigrationGenerator
Derived
Inherited Members

Properties

SetupLastChanged

When the setup scripts last changed, per DB backend

public abstract DateTimeOffset SetupLastChanged { get; }

Property Value

DateTimeOffset

Methods

GenerateDDL(IEnumerable<IEvent>)

Add events to the current migration and emit SQL

public abstract IReadOnlyList<string> GenerateDDL(IEnumerable<IEvent> es)

Parameters

es IEnumerable<IEvent>

Returns

IReadOnlyList<string>

GenerateDDL(params IEvent[])

Add events to the current migration and emit SQL

public IReadOnlyList<string> GenerateDDL(params IEvent[] es)

Parameters

es IEvent[]

Returns

IReadOnlyList<string>

GenerateTriggers()

Emit trigger SQL which should be executed before and after a migration's DDL

public abstract (IReadOnlyList<IReadOnlyList<string>> before, IReadOnlyList<IReadOnlyList<string>> after) GenerateTriggers()

Returns

(IReadOnlyList<IReadOnlyList<string>> before, IReadOnlyList<IReadOnlyList<string>> after)

GetDialect()

public abstract IDDLDialect GetDialect()

Returns

IDDLDialect

InitialSetup()

When iterated, emit rerunnable db-setup scripts

public abstract IEnumerable<IEnumerable<string>> InitialSetup()

Returns

IEnumerable<IEnumerable<string>>

SkipDDL(params IEvent[])

Adds some events to the current migration without emitting the corresponding SQL

public abstract void SkipDDL(params IEvent[] es)

Parameters

es IEvent[]