OINO TS
    Preparing search index...

    Class OINONoSqlAbstract

    Abstract base class for NoSQL storage backends. Subclasses implement the core CRUD operations for a specific provider (e.g. Azure Table Storage).

    The data model exposed by the API has a fixed set of fields:

    1. partitionKey – partition key (primary key component, string)
    2. rowKey – row key (primary key component, string)
    3. timestamp – last modification timestamp (datetime)
    4. etag – entity tag (string)
    5. properties – all custom entity properties as a JSON string

    The SQL-formatting methods inherited from OINODataSource are not used by nosql operations; they are implemented here as passthrough stubs.

    Hierarchy

    • unknown
      • OINONoSql
    Index

    Constructors

    Properties

    name: string

    Table name

    supportsAutoKey: boolean = false

    Whether this backend can auto-generate primary key values when none are supplied in a POST request. Defaults to false; override in subclasses that support server-side key generation (e.g. UUID on insert).

    Methods

    • Delete an entity.

      Parameters

      • primaryKey: string[]

        ordered primary key values as defined by the implementation's data model

      Returns Promise<void>

    • Fetch a single entity by its primary key values.

      Returns null when no entity with the given primary key exists.

      Parameters

      • primaryKey: string[]

        ordered primary key values as defined by the implementation's data model

      Returns Promise<OINONoSqlEntry>

    • List all entities in the table, applying storage-level filtering where possible and in-memory result filtering for remaining predicates.

      Parameters

      • Optionalfilter: OINOQueryFilter

        optional query filter to apply

      Returns Promise<OINONoSqlEntry[]>

    • Parameters

      • v: OINODataCell
      • nativeType: string

      Returns OINODataCell

    • Parameters

      • cellValue: OINODataCell
      • nativeType: string

      Returns string

    • Upsert (insert or replace) multiple entities in the most efficient way the backend supports. The default implementation loops over upsertEntry; override in subclasses that support native batch writes.

      Parameters

      Returns Promise<void>