zibri
    Preparing search index...

    A base postgres data source definition.

    Implements

    Index

    Constructors

    Properties

    entities: Newable<BaseEntity>[]

    The entities of this data source.

    migrations: Newable<Migration>[] = []

    All migrations that belong to this data source.

    rootPw: string | undefined

    The optional root password.

    rootUsername: string | undefined

    The optional root username.

    Methods

    • Changes the given oldProperty to the newProperty on the given entity.

      Type Parameters

      Parameters

      • entity: Newable<T>
      • oldColumn: string & {} | keyof T
      • newColumn: PropertyMetadataInput & {
            name?: keyof T;
            type:
                | "string"
                | "number"
                | "boolean"
                | "object"
                | "array"
                | "date"
                | "unknown";
        }
        • Optionalname?: keyof T

          The name of the new column.

        • type: "string" | "number" | "boolean" | "object" | "array" | "date" | "unknown"

          The type of the new column.

      • transaction: Transaction

      Returns Promise<void>