Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConstraintBuilder

Builder to specify the schema of a table constraint.

Hierarchy

Index

Constructors

constructor

Properties

Protected Optional constraintExpression

constraintExpression: QuerySafeValue

The expression defining this constraint, if applicable.

Protected constraintType

constraintType: ConstraintType = ...

The type of this constraint.

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.

Protected fields

fields: Set<string> = ...

The fields included in this constraint.

Readonly name

name: string

Optional originalFromSchema

originalFromSchema: ConstraintBuilder

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

Readonly parent

parent: TableBuilder

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 cloneInstance

cloneTo

drop

dropIfExists

expression

field

flagAsExistingInSchema

getExpression

getFields

  • getFields(): string[]

getRename

  • getRename(): Maybe<string>

getType

ifNotExists

isDirty

  • isDirty(): boolean

isDropping

  • isDropping(): boolean

isDroppingIfExists

  • isDroppingIfExists(): boolean

isExisting

  • isExisting(): boolean

isSkippedIfExisting

  • isSkippedIfExisting(): boolean

pipe

removeField

rename

type

Extollo Logo

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

Extollo is a free & libre application framework in TypeScript.