This class handles all the database interactions required to creating a bundle.

Hierarchy

  • BundleDatabase

Constructors

Properties

assetRepository: Repository<Asset>
bundleRepository: Repository<Bundle>
connectionRepository: Repository<Connection>
dataSource: DataSource

The typeorm dataSource to use in the class

keyRepository: Repository<Key>

Methods

  • Parameters

    • environment: string

    Returns Promise<{
        name: string;
        version: number;
    }[]>

  • Parameters

    • environment: string

    Returns Promise<{
        name: string;
        version: number;
    }[]>

  • Saved the metadata of the bundle into the database

    Parameters

    • versions: BundleContentVersions

      The versions of the bundle content

    • hash: string

      The md5 hash of the created bundle tarball

    Returns Promise<number>

    The ID of the created bundle

Generated using TypeDoc