@grandlinex/bundle-postgresql
    Preparing search index...

    Class PGUpdateAbstract

    Hierarchy

    Index

    Constructors

    • Parameters

      • srcVersion: string
      • tarVersion: string
      • db: PGCon

      Returns PGUpdate

    Properties

    srcVersion: string
    tarVersion: string

    Methods

    • Protected

      Alter a table to add a new column.

      Parameters

      • className: string
      • columName: string
      • type: string
      • notNull: boolean
      • OptionaldefaultValue: string
      • OptionaldeleteDefault: boolean

      Returns Promise<boolean>

    • Protected

      Alter a table to delete a column. This method is used to remove a column from an existing table in the database.

      Parameters

      • className: string
      • columName: string

      Returns Promise<boolean>

    • Parameters

      • version: string

      Returns null | CoreDBUpdate<PGCon<ICoreKernel<any, ICoreAnyModule>, any, any, any, any>>

    • Returns PGCon

    • Returns string

    • Initialize a new table in the database. This method is used to create a new table in the database.

      Parameters

      • className: string

      Returns Promise<boolean>

    • Returns Promise<boolean>

    • Parameters

      • db: CoreDBUpdate<PGCon<ICoreKernel<any, ICoreAnyModule>, any, any, any, any>>

      Returns void

    • Returns Promise<boolean>

    • Returns Promise<boolean>