@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"
            | "uploadUrl"
            | "downloadUrl"
            | (keyof BaseFileLocationInfo)
        )[]

        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"
            | "uploadUrl"
            | "downloadUrl"
            | (keyof BaseFileLocationInfo)
        )[]

        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.