@resistdesign/voltra
    Preparing search index...

    Class InMemoryFileItemDBDriver

    In-memory file driver backed by local state.

    Implements

    Index

    Methods

    • List file items from memory.

      Parameters

      • config: ListItemsConfig

        List configuration and criteria.

      • OptionalselectFields: (
            | "id"
            | "updatedOn"
            | "mimeType"
            | "sizeInBytes"
            | "isDirectory"
            | (keyof BaseFileLocationInfo)
            | "uploadUrl"
            | "downloadUrl"
        )[]

        Optional fields to select from each file item.

      Returns Promise<ListItemsResults<Partial<BaseFileItem>>>

      List results with items and cursor.

    • Read a file item from memory.

      Parameters

      • uniqueIdentifier: string

        Unique identifier value for the file.

      • OptionalselectFields: (
            | "id"
            | "updatedOn"
            | "mimeType"
            | "sizeInBytes"
            | "isDirectory"
            | (keyof BaseFileLocationInfo)
            | "uploadUrl"
            | "downloadUrl"
        )[]

        Optional fields to select from the file item.

      Returns Promise<Partial<BaseFileItem>>

      File item payload (partial when selected fields are used).

    Properties

    Driver configuration including table name and config overrides.

    readItemStronglyConsistent: (
        uniqueIdentifier: string,
        selectFields?: (
            | "id"
            | "updatedOn"
            | "mimeType"
            | "sizeInBytes"
            | "isDirectory"
            | (keyof BaseFileLocationInfo)
            | "uploadUrl"
            | "downloadUrl"
        )[],
    ) => Promise<Partial<BaseFileItem>> = ...

    Strongly consistent maintenance read.

    Type Declaration

      • (
            uniqueIdentifier: string,
            selectFields?: (
                | "id"
                | "updatedOn"
                | "mimeType"
                | "sizeInBytes"
                | "isDirectory"
                | (keyof BaseFileLocationInfo)
                | "uploadUrl"
                | "downloadUrl"
            )[],
        ): Promise<Partial<BaseFileItem>>
      • Read a file item from memory.

        Parameters

        • uniqueIdentifier: string

          Unique identifier value for the file.

        • OptionalselectFields: (
              | "id"
              | "updatedOn"
              | "mimeType"
              | "sizeInBytes"
              | "isDirectory"
              | (keyof BaseFileLocationInfo)
              | "uploadUrl"
              | "downloadUrl"
          )[]

          Optional fields to select from the file item.

        Returns Promise<Partial<BaseFileItem>>

        File item payload (partial when selected fields are used).