zibri
    Preparing search index...

    Class TypeOrmUtilitiesAbstract

    Utilities for dealing with typeorm.

    Index

    Constructors

    Methods

    • Gets the metadata for a typeorm column.

      Type Parameters

      Parameters

      • target: EntityTarget<T>

        The entity.

      • propertyName: string & {} | keyof T

        The name of the property to get the column metadata for.

      • transaction: Transaction

        The transaction to use to get the column metadata.

      Returns ColumnMetadata

      The typeorm column metadata.

      When the provided propertyName could not be found as a column.

    • Gets the typeorm metadata for a given entity.

      Type Parameters

      Parameters

      • target: EntityTarget<T>

        The target entity.

      • transaction: Transaction

        The transaction to run this command with.

      Returns EntityMetadata

      The typeorm metadata.

    • Normalizes the type of the given column using the provided dataSource.

      Parameters

      • dataSource: DataSource | undefined
      • column: {
            isArray?: boolean;
            length?: string | number;
            precision?: number | null;
            scale?: number;
            type?: string & {} | ColumnType;
        }

      Returns string

      The normalized column type as a string.

      When no dataSource has been provided.