Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IndexBuilder

Builder to specify the schema of a table 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.

Protected fields

fields: Set<string> = ...

The fields included in the index.

Readonly name

name: string

Optional originalFromSchema

originalFromSchema: IndexBuilder

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

Readonly parent

parent: TableBuilder

Protected removedFields

removedFields: Set<string> = ...

Fields to remove from the index.

Protected shouldBePrimary

shouldBePrimary: boolean = false

True if this is a primary key index.

Protected shouldBeUnique

shouldBeUnique: boolean = false

True if this is a unique index.

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

field

flagAsExistingInSchema

getFields

  • getFields(): string[]

getRename

  • getRename(): Maybe<string>

ifNotExists

isDirty

  • isDirty(): boolean

isDropping

  • isDropping(): boolean

isDroppingIfExists

  • isDroppingIfExists(): boolean

isExisting

  • isExisting(): boolean

isPrimary

  • isPrimary(): boolean

isSkippedIfExisting

  • isSkippedIfExisting(): boolean

isUnique

  • isUnique(): boolean

pipe

primary

Protected removeField

rename

unique

Extollo Logo

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

Extollo is a free & libre application framework in TypeScript.