prorm API Reference
    Preparing search index...

    Class OrientDbStore

    Base interface for NoSQL stores.

    NoSQL engines (document stores, key-value caches, partition-key stores) do not share the SQL-shaped Dialect interface (no query(sql), no identifier escaping, no DDL). NoSqlStore is intentionally minimal: connection lifecycle plus a raw escape hatch. Each store's real API surface (find/insert/update for Mongo, hash/list/set ops for Redis, item CRUD for DynamoDB) lives on its own class, not on this interface, because forcing them into one shared query shape would misrepresent what each engine can actually do.

    Implements

    Index
    name: "orientdb" = 'orientdb'

    The name of the store (e.g. 'mongodb', 'redis', 'dynamodb')

    library: "orientjs" = 'orientjs'

    The client library being used

    • Insert a document into collection (class); returns its @rid/id.

      Parameters

      • collection: string
      • doc: Record<string, unknown>

      Returns Promise<unknown>

    • Fetch a document by @rid.

      Parameters

      • collection: string
      • id: string

      Returns Promise<unknown>

    • Merge patch into an existing document identified by @rid.

      Parameters

      • collection: string
      • id: string
      • patch: Record<string, unknown>

      Returns Promise<unknown>

    • Delete a document identified by @rid.

      Parameters

      • collection: string
      • id: string

      Returns Promise<unknown>

    • Run an OrientDB SQL statement and return the resulting rows. options.params binds parameters into the statement.

      Parameters

      • collection: string
      • statement: string
      • options: OrientDbQueryOptions = {}

      Returns Promise<unknown[]>