Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SchemaBuilderBase

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

Hierarchy

Index

Constructors

constructor

Properties

Protected dirty

dirty: boolean = false

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

Protected existsInSchema

existsInSchema: boolean = false

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

Readonly name

name: string

Optional originalFromSchema

originalFromSchema: SchemaBuilderBase

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

Protected shouldDrop

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

Whether or not the schema item should be dropped.

  • exists - drop if exists

Protected Optional shouldRenameTo

shouldRenameTo: string

The name the schema item should have if renaming.

Protected shouldSkipIfExists

shouldSkipIfExists: boolean = false

If true, apply IF NOT EXISTS syntax.

Methods

Protected Abstract cloneInstance

cloneTo

drop

dropIfExists

flagAsExistingInSchema

getRename

  • getRename(): Maybe<string>

ifNotExists

isDirty

  • isDirty(): boolean

isDropping

  • isDropping(): boolean

isDroppingIfExists

  • isDroppingIfExists(): boolean

isExisting

  • isExisting(): boolean

isSkippedIfExisting

  • isSkippedIfExisting(): boolean

pipe

rename

Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.