Skip to main content

Module merge

Module merge 

Source
Expand description

Importing one graph into another as edits: what a codicil import writes into a session’s journal.

Reservoir plan V2, §7 item 27. An import used to rebuild the graph from the union of two snapshots and swap it in, which a journal cannot record. The same union is written here as ordinary edits:

  • a node the live graph lacks arrives whole, through the edits undo uses to bring back a removed node, and with its images;
  • a node both graphs hold keeps its own fields, and the incoming facets overwrite its own;
  • the incoming relations join the live ones between the same two nodes, as a snapshot load restores a union.

The rebuild also gave every node the default-valued facets its empty legacy columns import as. These edits give none: the incoming graph carries its codicil’s facet store whole, as a session loads its own. No codicil carries column data, since canonical saves have written the columns empty since before the first codicil schema.

Functions§

import_edits
The edits that import incoming into live. incoming is a codicil’s graph with the codicil’s facet store laid in whole, not over what its snapshot’s legacy columns import. This compatibility path stops on resources until resource-aware import lands.