Class

GraphDatabase

(abstract) GraphDatabase()

a GraphDatabase provides the base implementation for object replication to a remote store. It follows the pattern exemplified by an IndexedDB database (IDBDatabase), but adds logic to support state replication to a graph store

Constructor

abstract new GraphDatabase()

Properties:
Name Type Description
nodeAddress string

The V1 UUID stem which identifies this node serves to filter out mirrired replication requests

location string

The connection string for request to the remote store

authentication string

The authentication string for remote requests

objectStores GDBObjectStore

A map of object store by name

disposition string

The replication route name

environment GraphEnvironment

The environment to be used to translate between remote representation and namte objects.

View Source graph-database.js, line 226

Methods

createObjectStore()

Given an name, create an object store and register it with that name

View Source graph-database.js, line 342

abstract describe()

View Source graph-database.js, line 416

findObjectStore()

Returned the object store registerd with that name

View Source graph-database.js, line 366

patch(content)

The base method caches the patch with time and regision tags.

Parameters:
Name Type Description
content Object
delete Array

View Source graph-database.js, line 436

transaction()

Create and return an new transaction associated with the given object store(s)

View Source graph-database.js, line 403