OINO TS
    Preparing search index...

    Class OINOBlobAbstract

    Abstract base class for blob storage backends. Subclasses implement the two core operations (listEntries and fetchEntry) for a specific provider (e.g. Azure Blob Storage, S3, …).

    The SQL-formatting methods inherited from OINODataSource are not used by blob operations; they are implemented here as passthrough stubs so that the blob datasource can still be composed with OINODataField.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    isConnected: boolean = false
    isValidated: boolean = false
    name: string

    Container / bucket name

    Methods

    • Coerce a single data value into a form that can safely be passed to the datasource as a bind parameter (as opposed to printCellAsValue, which formats it as an inline SQL literal).

      The default implementation returns the value unchanged. SQL datasources override this to apply driver-specific coercions (e.g. converting Date/boolean for drivers that only accept primitive bind types). Non-SQL datasources (blob, nosql) can ignore it.

      Parameters

      • cellValue: OINODataCell

        data value to bind

      • nativeType: string

        native type name for the table column

      Returns OINODataCell

    • Delete a named blob.

      Parameters

      • name: string

        full blob name (path within the container)

      Returns Promise<void>

    • List blob entries, optionally filtered by a query filter. Implementations should apply native query filtering where possible and fall back to in-memory result filtering for predicates that cannot be expressed as a native query.

      Parameters

      • Optionalfilter: OINOQueryFilter

        optional query filter to apply to the results

      Returns Promise<OINOBlobEntry[]>

    • Sanitize a blob name by replacing characters that are illegal or unsafe on this storage backend with _.

      The base implementation strips ASCII control characters (U+0000–U+001F and U+007F). Subclasses should override to apply additional platform-specific rules.

      Parameters

      • name: string

        raw blob name (path within the container)

      Returns string

    • Upload (create or replace) a blob with the given binary content.

      Parameters

      • name: string

        full blob name (path within the container)

      • content: Uint8Array

        binary content to store

      • contentType: string

        MIME type of the content (e.g. "image/jpeg")

      Returns Promise<void>