Constructor
new SqlJsMapBackend()
Ready the backend on a specific database filename.
The backend cannot be used until #load() finishes.
Options may have keys:
- loadFrom: "none", "url", or "data"
- Source:
Methods
baseCreateEdge(nodeAId, nodeBId) → {number}
Create an edge atomically.
Parameters:
Name | Type | Description |
---|---|---|
nodeAId |
number | The ID of one of the nodes on the edge. |
nodeBId |
number | The ID of the other node on the edge. |
- Source:
Returns:
The ID of the new edge.
- Type
- number
baseCreateNode(parentId, nodeType) → {number}
Create a node atomically.
Parameters:
Name | Type | Description |
---|---|---|
parentId |
number | null | The ID of the node's parent, or null if none. |
nodeType |
string | The base type of the node. |
- Source:
Returns:
The ID of the new node.
- Type
- number