Class SchemaBuilderBaseAbstract

Base class with shared logic for the various schema builders (table, column, index).




dirty: boolean = false

True if the schema has been modified since created/loaded.

existsInSchema: boolean = false

True if this resource exists, in some form, in the schema.

name: string

The name of the schema item.

originalFromSchema?: SchemaBuilderBase

If the resource exists in the schema, the unaltered values it has.

shouldDrop: "yes" | "exists" | "no" = 'no'

Whether or not the schema item should be dropped.

  • exists - drop if exists
shouldRenameTo?: string

The name the schema item should have if renaming.

shouldSkipIfExists: boolean = false

If true, apply IF NOT EXISTS syntax.